Description
i am having trouble running the mainsift file i am a bit new to cuda developing any help in this will be much appreciated
(base) hw12@hw12-OptiPlex-9020:~/visual studio project/CudaSift-Pascal$ nvcc mainSift.cpp -o output pkg-config --cflags --libs opencv
/tmp/tmpxft_00006d02_00000000-5_mainSift.o: In function main': mainSift.cpp:(.text+0x40f): undefined reference to
InitCuda(int)'
mainSift.cpp:(.text+0x41e): undefined reference to CudaImage::CudaImage()' mainSift.cpp:(.text+0x42d): undefined reference to
CudaImage::CudaImage()'
mainSift.cpp:(.text+0x446): undefined reference to iAlignUp(int, int)' mainSift.cpp:(.text+0x474): undefined reference to
CudaImage::Allocate(int, int, int, bool, float*, float*)'
mainSift.cpp:(.text+0x491): undefined reference to iAlignUp(int, int)' mainSift.cpp:(.text+0x4bf): undefined reference to
CudaImage::Allocate(int, int, int, bool, float*, float*)'
mainSift.cpp:(.text+0x4d2): undefined reference to CudaImage::Download()' mainSift.cpp:(.text+0x4e1): undefined reference to
CudaImage::Download()'
mainSift.cpp:(.text+0x532): undefined reference to InitSiftData(SiftData&, int, bool, bool)' mainSift.cpp:(.text+0x550): undefined reference to
InitSiftData(SiftData&, int, bool, bool)'
mainSift.cpp:(.text+0x56d): undefined reference to AllocSiftTempMemory(int, int, int, bool)' mainSift.cpp:(.text+0x5cc): undefined reference to
ExtractSift(SiftData&, CudaImage&, int, double, float, float, bool, float*)'
mainSift.cpp:(.text+0x60a): undefined reference to ExtractSift(SiftData&, CudaImage&, int, double, float, float, bool, float*)' mainSift.cpp:(.text+0x625): undefined reference to
FreeSiftTempMemory(float*)'
mainSift.cpp:(.text+0x651): undefined reference to MatchSiftData(SiftData&, SiftData&)' mainSift.cpp:(.text+0x68d): undefined reference to
FindHomography(SiftData&, float*, int*, int, float, float, float)'
mainSift.cpp:(.text+0x6bc): undefined reference to ImproveHomography(SiftData&, float*, int, float, float, float)' mainSift.cpp:(.text+0x8f6): undefined reference to
FreeSiftData(SiftData&)'
mainSift.cpp:(.text+0x905): undefined reference to FreeSiftData(SiftData&)' mainSift.cpp:(.text+0x914): undefined reference to
CudaImage::~CudaImage()'
mainSift.cpp:(.text+0x923): undefined reference to CudaImage::~CudaImage()' mainSift.cpp:(.text+0xa80): undefined reference to
CudaImage::~CudaImage()'
mainSift.cpp:(.text+0xa94): undefined reference to `CudaImage::~CudaImage()'
this is the error and the command used to run the code