You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to compile the code using g++ g++ -c -o main.o main.cpp
but there is a error saying main.cpp:36:58: error: ‘sprintf’ was not declared in this scope
I'm a little confused when I include the stdio.h in main.cpp directly, there are lots of errors when compiling saying: undefined reference
any suggestion?
The text was updated successfully, but these errors were encountered:
I think it's stdio.h.
undefined reference means that you have successfully compiled the source but have problems in the linker.
Did you add the flags to link openCV? somethink like -lopencv_core,...
I'm trying to compile the code using g++
g++ -c -o main.o main.cpp
but there is a error saying
main.cpp:36:58: error: ‘sprintf’ was not declared in this scope
I'm a little confused when I include the stdio.h in main.cpp directly, there are lots of errors when compiling saying:
undefined reference
any suggestion?
The text was updated successfully, but these errors were encountered: