Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Problem Building a Project in Eclipse [Ubuntu]

Hello,

I followed exactly the tutorial in http://docs.opencv.org/doc/tutorials/introduction/linux_eclipse/linux_eclipse.html#linux-eclipse-usage

and when I tried to build the project I created, I got 2 errors in the console:

Building target: Test
Invoking: GCC C++ Linker
g++ -L/usr/local/lib -o"Test" ./src/Test.o -lopencv_core -lopencv_highgui -lopencv_legacy -lopencv_ml -lopencv_video -lopencv_contrib -lopencv_features2d -lopencv_imgproc -lopencv_calib3d -lopencv_objdetect -lopencv_flann
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/crt1.o: In function `_start':

(.text+0x20): undefined reference to `main'
collect2: ld returned 1 exit status
make: *** [Test] Error 1

What seems to be the problem?

Thanks, in advance.