Compiling Tutorial: error: ‘import’ does not name a type
Hi there,
my compiler complains that the imports in the following tutorial aren't correct: http://docs.opencv.org/trunk/doc/py_tutorials/py_gui/py_video_display/py_video_display.html
I compiled with g++, or is this a different kind of code?
g++ pkg-config --cflags --libs opencv
test.cpp -o test
The Massage: test.cpp:14:16: warning: character constant too long for its type [enabled by default] test.cpp:1:1: error: ‘import’ does not name a type
I was wondering what to do to compile it. Thanks in advance.
you are trying to compile a python script ? ;) hehe, no.
to run those, it's like
again, - no, that is not c++, but python, another language.
Thanks for the information. I used you command and it worked. Since I don't know about python I didn't recognized it.