CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Getting error - error: ‘pointer’ does not name a type (https://www.cfd-online.com/Forums/openfoam-programming-development/166083-getting-error-error-pointer-does-not-name-type.html)

surajsalvip@gmail.com February 2, 2016 05:18

Getting error - error: ‘pointer’ does not name a type
 
while executing make on ISPM library getting c++ error

g++ -c fastainv/fastainv.cpp -o fastainv/fastainv.o -O2 -g -Wall -Wno-sign-compare -fPIC -I. -I/usr/local/cuda-7.5/include/
In file included from ./util/cuda/vector.h:8,
from ./formats/formats.h:4,
from ./fastainv/fastainv.h:4,
from fastainv/fastainv.cpp:11:
./util/cuda/allocator.h:14: error: ‘pointer’ does not name a type
./util/cuda/allocator.h:14: note: (perhaps ‘typename std::allocator<_CharT>::pointer’ was intended)
./util/cuda/allocator.h:21: error: ‘pointer’ is not a type
./util/cuda/allocator.h:21: error: ‘size_type’ is not a type
./util/cuda/allocator.h:51: error: ‘pointer’ does not name a type
./util/cuda/allocator.h:51: note: (perhaps ‘typename std::allocator<_CharT>::pointer’ was intended)
./util/cuda/allocator.h:57: error: ‘pointer’ is not a type
./util/cuda/allocator.h:57: error: ‘size_type’ is not a type
make: *** [fastainv/fastainv.o] Error 1


the allocator.h is available at https://github.com/amonakov/ispm-spa...da/allocator.h

please help


All times are GMT -4. The time now is 15:28.