Skip to content

Does not compile #3

Description

@nightduck

I tried 3 different packages, but the output below is from the roscuda_vectoradd example (after adding the missing THREADS_PER_BLOCK define and updating the cuda architectures in the CMakeLists file). The cpp file is not getting properly linked to the CUDA file.

Errors     << roscuda_vectoradd:make /home/oren/catkin_ws/logs/roscuda_vectoradd/build.make.001.log                                        
Generated /home/oren/catkin_ws/build/roscuda_vectoradd/CMakeFiles/TestLib.dir/src/./TestLib_generated_vectoradd.cu.o successfully.
CMakeFiles/roscuda_vectoradd.dir/src/main.cpp.o: In function `main':
main.cpp:(.text.startup+0x217): undefined reference to `testmain(int, int)'
collect2: error: ld returned 1 exit status
make[2]: *** [/home/oren/catkin_ws/devel/lib/roscuda_vectoradd/roscuda_vectoradd] Error 1
make[1]: *** [CMakeFiles/roscuda_vectoradd.dir/all] Error 2
make: *** [all] Error 2

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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