Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In linux, compile darknet as libdarknet.so. I just write a simple yolo_console_dll.cpp to link .so. #67

Open
xyzhai-pro opened this issue Nov 17, 2021 · 0 comments

Comments

@xyzhai-pro
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant