Running main.cu throws tmp errors

Hi,

I try to run my main.cu by executing the following command:

nvcc -L/usr/local/cuda/targets/aarch64-linux/lib main.cu -Inppc -Inppi -Inppial

Apparently, I got the following tmp errors:

nvnano@nvnano-desktop:~/camVCNano_DHU_4_1g/src$ nvcc -L/usr/local/cuda/targets/aarch64-linux/lib main.cu -Inppc -Inppi -Inppial
/tmp/tmpxft_0000611f_00000000-10_main.o: In function `main':
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x134): undefined reference to `DHU_modbus::DHU_modbus(char const*, int)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x14c): undefined reference to `DHU_modbus::reset()'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x154): undefined reference to `DHU_modbus::powerOn_D()'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x15c): undefined reference to `DHU_modbus::powerOn_Z()'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x16c): undefined reference to `DHU_modbus::setVelAcc_D(double, double)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x17c): undefined reference to `DHU_modbus::setVelAcc_Z(double, double)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x33c): undefined reference to `camHandlerVCjm(containerMainCamera*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x340): undefined reference to `camHandlerVCjm(containerMainCamera*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x4c0): undefined reference to `camHandlerVCjm(containerMainCamera*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x4c4): undefined reference to `camHandlerVCjm(containerMainCamera*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x678): undefined reference to `containerMainStore::containerMainStore(int)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x684): undefined reference to `storeLocalHandler(containerMainStore*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x688): undefined reference to `storeLocalHandler(containerMainStore*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x6e4): undefined reference to `containerMainSocket::containerMainSocket(bool, int)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x6f0): undefined reference to `socketHandler(containerMainSocket*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x6f4): undefined reference to `socketHandler(containerMainSocket*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x86c): undefined reference to `xRayGenHandler(containerMainXRayGen*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x870): undefined reference to `xRayGenHandler(containerMainXRayGen*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x1bc0): undefined reference to `DHU_modbus::moveToPosition_D(double)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x1bc8): undefined reference to `DHU_modbus::moveDone_D()'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x1be4): undefined reference to `DHU_modbus::getPosition_D()'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x1c78): undefined reference to `DHU_modbus::moveToPosition_Z(double)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x1c80): undefined reference to `DHU_modbus::moveDone_Z()'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x3d6c): undefined reference to `containerMainStore::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x3fec): undefined reference to `containerMainStore::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x41dc): undefined reference to `containerMainStore::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x445c): undefined reference to `containerMainStore::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x46bc): undefined reference to `containerMainSocket::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x490c): undefined reference to `containerMainSocket::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x4b10): undefined reference to `containerMainSocket::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x4d4c): undefined reference to `containerMainSocket::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x5170): undefined reference to `containerMainStore::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x53b0): undefined reference to `containerMainStore::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x55c0): undefined reference to `containerMainSocket::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x57d0): undefined reference to `containerMainSocket::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x5cf0): undefined reference to `DHU_modbus::getPosition_D()'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x5d38): undefined reference to `DHU_modbus::getPosition_Z()'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x6594): undefined reference to `launchStandardDeviation2(DataSet, standardDeviation*, OffsetForstandardDeviation)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x65e8): undefined reference to `launchStandardDeviation2(DataSet, standardDeviation*, OffsetForstandardDeviation)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x68ac): undefined reference to `launchBadPixel2(DataSet, BadPixelData*, standardDeviation, std::vector<int, std::allocator<int> >*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x6928): undefined reference to `launchBadPixel2(DataSet, BadPixelData*, standardDeviation, std::vector<int, std::allocator<int> >*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x6a5c): undefined reference to `CorrectLUT2(DataSet, std::vector<int, std::allocator<int> >)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x6ab8): undefined reference to `CorrectLUT2(DataSet, std::vector<int, std::allocator<int> >)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x77d8): undefined reference to `containerMainStore::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x79cc): undefined reference to `containerMainStore::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x7ee0): undefined reference to `containerMainSocket::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x80c4): undefined reference to `containerMainSocket::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x8818): undefined reference to `containerMainStore::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x8a3c): undefined reference to `containerMainStore::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x8e90): undefined reference to `containerMainStore::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x9068): undefined reference to `containerMainStore::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x9298): undefined reference to `containerMainSocket::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x948c): undefined reference to `containerMainSocket::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x98b0): undefined reference to `containerMainSocket::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x9a78): undefined reference to `containerMainSocket::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0xb6e8): undefined reference to `DHU_modbus::moveToPosition_Z(double)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0xb6fc): undefined reference to `DHU_modbus::moveDone_Z()'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0xb718): undefined reference to `DHU_modbus::getPosition_Z()'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0xb780): undefined reference to `DHU_modbus::getPosition_Z()'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0xd340): undefined reference to `DHU_modbus::moveToPosition_D(double)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0xd354): undefined reference to `DHU_modbus::moveDone_D()'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0xd370): undefined reference to `DHU_modbus::getPosition_D()'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0xd414): undefined reference to `DHU_modbus::getPosition_D()'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0xd4c8): undefined reference to `DHU_modbus::getPosition_Z()'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0xdfcc): undefined reference to `containerMainStore::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0xe294): undefined reference to `containerMainStore::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0xe35c): undefined reference to `containerMainStore::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0xe624): undefined reference to `containerMainStore::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0xe92c): undefined reference to `containerMainSocket::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0xeb94): undefined reference to `containerMainSocket::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0xec5c): undefined reference to `containerMainSocket::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0xeec4): undefined reference to `containerMainSocket::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0xf5ac): undefined reference to `containerMainStore::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0xf9cc): undefined reference to `containerMainStore::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0xfd9c): undefined reference to `containerMainSocket::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x1015c): undefined reference to `containerMainSocket::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x10240): undefined reference to `Median_Filter(float*, std::vector<int, std::allocator<int> >)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x10288): undefined reference to `Median_Filter(float*, std::vector<int, std::allocator<int> >)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x10960): undefined reference to `containerMainStore::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x10db8): undefined reference to `containerMainStore::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x11070): undefined reference to `containerMainSocket::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x11450): undefined reference to `containerMainSocket::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x11814): undefined reference to `containerMainStore::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x11cb4): undefined reference to `containerMainStore::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x12078): undefined reference to `containerMainStore::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x12518): undefined reference to `containerMainStore::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x128dc): undefined reference to `containerMainStore::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
/tmp/tmpxft_0000611f_00000000-10_main.o:tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x12d7c): more undefined references to `containerMainStore::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)' follow
/tmp/tmpxft_0000611f_00000000-10_main.o: In function `main':
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x131d0): undefined reference to `DHU_modbus::getPosition_D()'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x13218): undefined reference to `DHU_modbus::getPosition_Z()'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x13748): undefined reference to `DHU_modbus::moveToPosition_D(double)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x13750): undefined reference to `DHU_modbus::moveDone_D()'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x1376c): undefined reference to `DHU_modbus::getPosition_D()'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x13800): undefined reference to `DHU_modbus::moveToPosition_Z(double)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x13808): undefined reference to `DHU_modbus::moveDone_Z()'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x15c20): undefined reference to `containerMainStore::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x15ecc): undefined reference to `containerMainStore::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x16070): undefined reference to `containerMainStore::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x1631c): undefined reference to `containerMainStore::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x1659c): undefined reference to `containerMainSocket::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x16818): undefined reference to `containerMainSocket::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x169bc): undefined reference to `containerMainSocket::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x16c38): undefined reference to `containerMainSocket::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x17090): undefined reference to `containerMainStore::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x17310): undefined reference to `containerMainStore::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x17554): undefined reference to `containerMainSocket::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x177a4): undefined reference to `containerMainSocket::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x17ca4): undefined reference to `DHU_modbus::getPosition_D()'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x17cec): undefined reference to `DHU_modbus::getPosition_Z()'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x18468): undefined reference to `launchStandardDeviation2(DataSet, standardDeviation*, OffsetForstandardDeviation)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x184bc): undefined reference to `launchStandardDeviation2(DataSet, standardDeviation*, OffsetForstandardDeviation)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x18708): undefined reference to `launchBadPixel2(DataSet, BadPixelData*, standardDeviation, std::vector<int, std::allocator<int> >*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x18784): undefined reference to `launchBadPixel2(DataSet, BadPixelData*, standardDeviation, std::vector<int, std::allocator<int> >*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x18858): undefined reference to `CorrectLUT2(DataSet, std::vector<int, std::allocator<int> >)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x188b4): undefined reference to `CorrectLUT2(DataSet, std::vector<int, std::allocator<int> >)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x19450): undefined reference to `containerMainStore::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x196dc): undefined reference to `containerMainStore::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x19a78): undefined reference to `containerMainSocket::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x19cd4): undefined reference to `containerMainSocket::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x1a3e0): undefined reference to `containerMainStore::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x1a52c): undefined reference to `containerMainStore::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x1a838): undefined reference to `containerMainStore::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x1aabc): undefined reference to `containerMainStore::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x1ac48): undefined reference to `containerMainSocket::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x1ad94): undefined reference to `containerMainSocket::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x1b070): undefined reference to `containerMainSocket::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x1b2c4): undefined reference to `containerMainSocket::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x1b640): undefined reference to `DHU_modbus::moveToPosition_D(double)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x1b654): undefined reference to `DHU_modbus::moveDone_D()'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x1b670): undefined reference to `DHU_modbus::moveDone_Z()'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x1b6ac): undefined reference to `DHU_modbus::getPosition_D()'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x1b754): undefined reference to `DHU_modbus::getPosition_Z()'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x1b7fc): undefined reference to `DHU_modbus::powerOff_D()'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x1b804): undefined reference to `DHU_modbus::powerOff_Z()'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x1b8d8): undefined reference to `containerMainSocket::writeToQueue(int, char, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void*)'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x1bb50): undefined reference to `DHU_modbus::~DHU_modbus()'
tmpxft_0000611f_00000000-5_main.cudafe1.cpp:(.text+0x2044c): undefined reference to `DHU_modbus::~DHU_modbus()'
collect2: error: ld returned 1 exit status

I am new to cuda. Could anybody help me with this errors?

Hi,

Based on the log, there are some missing header files for compiling.
Please add it with the -I flag.

Thansk.

Hi,
do you mean the undefined references as header files? For me it is not clear why headers are missing. Could you explain it?

Hi,

Would you mind attaching the main.cu file so we can check it further.

There are some missing headers in the output log (ex. DHU_modbus::DHU_modbus, …)
You will need to point the correct include path of these files to the compiler.

Thanks.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.