In linux, compile darknet as libdarknet.so. I just write a simple yolo_console_dll.cpp to link .so.
xyzhai-pro opened this issue · comments
xyzhai-pro commented
when i type the command as g++ -fPIC -std=c++11 -D_GLIBCXX_USE_CXX11_ABI=0 yolo_console_dll.cpp -L./lib/ -I. -ldarknet $(pkg-config --cflags --libs opencv) -o test.
The error is /tmp/ccis7rE8.o:in function‘main’: yolo_console_dll.cpp:(.text+0xb11):‘Detector::Detector(std::string, std::string, int)’undefined reference collect2: error: ld returned 1 exit status
look forward your reply