#"g++ -fPIC -shared -o main.so main.cpp" its giving "opencv2/opencv.hpp: No such file or directory"
14 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
Can u show the command you executed?
`
#include <opencv2/opencv.hpp>
int main() {
return 0;
}
extern "C" {
int test() {
return 12;
}
}
`
right I didnt notice its in the thread's name lol
Where is your opencv2 located
im using msys there are alot of opencv2 folders
it did work!
thanks although now im getting errors in the c++ itself but atleast now it knows where opencv is
@shut pasture Has your question been resolved? If so, type !solved :)