Skip to content

compilation error #1

@KunalTon

Description

@KunalTon

When I try to complile the code, I get the following error:

[ 2%] Building CXX object src/VMlib/CMakeFiles/VMlib2.dir/PairInt/PairInt.cpp.o
[ 5%] Building CXX object src/VMlib/CMakeFiles/VMlib2.dir/Parallel/Parallel.cpp.o
[ 7%] Building CXX object src/VMlib/CMakeFiles/VMlib2.dir/PassportGen/PassportGen.cpp.o
In file included from /home/194040001/a/VM2DM/src/VMlib/StreamParser/StreamParser.h:48:0,
from /home/194040001/a/VM2DM/src/VMlib/PassportGen/PassportGen.cpp:40:
/home/194040001/a/VM2DM/src/VM2D/Gpu2D/Gpu2D.h: In member function ‘T* VM2D::MyAlloc::allocate(VM2D::MyAlloc::size_type, const void*)’:
/home/194040001/a/VM2DM/src/VM2D/Gpu2D/Gpu2D.h:326:41: error: there are no arguments to ‘cuAlloc’ that depend on a template parameter, so a declaration of ‘cuAlloc’ must be available [-fpermissive]
cuAlloc((void**)&ret, num * sizeof(T));
^
/home/194040001/a/VM2DM/src/VM2D/Gpu2D/Gpu2D.h:326:41: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/home/194040001/a/VM2DM/src/VM2D/Gpu2D/Gpu2D.h: In member function ‘void VM2D::MyAlloc::deallocate(VM2D::MyAlloc::pointer, VM2D::MyAlloc::size_type)’:
/home/194040001/a/VM2DM/src/VM2D/Gpu2D/Gpu2D.h:353:21: error: there are no arguments to ‘cuDalloc’ that depend on a template parameter, so a declaration of ‘cuDalloc’ must be available [-fpermissive]
cuDalloc((void*)p);
^
make[2]: *** [src/VMlib/CMakeFiles/VMlib2.dir/PassportGen/PassportGen.cpp.o] Error 1
make[1]: *** [src/VMlib/CMakeFiles/VMlib2.dir/all] Error 2
make: *** [all] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions