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:在函数‘main’中: yolo_console_dll.cpp:(.text+0xb11):对‘Detector::Detector(std::string, std::string, int)’undefined reference collect2: error: ld returned 1 exit status
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:在函数‘main’中: yolo_console_dll.cpp:(.text+0xb11):对‘Detector::Detector(std::string, std::string, int)’undefined reference collect2: error: ld returned 1 exit status