i am a new user.i tried to build a c+= project in eclipse linking opencv libraries and following error message is shown
**** Build of configuration Debug for project image_load_display ****
make all
Building target: image_load_display
Invoking: GCC C++ Linker
g++ -L/usr/local/lib -o "image_load_display" ./src/image_load_display.o -lopencv_core -lopencv_imgproc -lopencv_highgui
/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/../../../crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: ld returned 1 exit status
make: *** [image_load_display] Error 1
**** Build Finished ****
how can i resolve this?
thanks
Here it says something about your main(). Have you put it in wrong place, did you forget declaring it etc?
collect2: ld returned 1 exit status
I usually get this one when some of my member functions of some class is undefined (but declared) but here you have the previous main() error so I would start from there.
As eypros says, looks like you've left out the main() function, unless this is meant to be a library, in which case you need to inform the linker of that.