Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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.