i have a problem with a testproject with multiple classes. The project consists of a class line and a class dot. The class line has 2 dots and should use some functions of the class dot.
When it comes to the compile phase of the project i get the error:
Building NVCC (Device) object src/CMakeFiles/CU_FILES.dir//./CU_FILES_generated_Cu_Line.cu
“ptxas fatal : Unresolved extern function ‘ZN6Cu_Dot8distanceEPS’”
IÂ´m including the header files of the class dot in the source file of the line class. I thought that the linker will link this “distance” function later in the Cu_Line sources.
Is there a way to get around this? The application is a cmake project but i donÂ´t need it if there is another way around with this problem. The project is attached.
I hope someone has an idea.
Scientific Linux SL release 5.4
Cuda compilation tools, release 5.0
TestLinkerProject.zip (75.3 KB)