|
From: zwz <zha...@gm...> - 2010-05-13 10:15:33
|
Hi, I just checked out the latest opencv 2.1 and generated the makefile for msys. And then I tried to compile it by gcc 4.5.0, with the error: [ 0%] Generating precomp.hpp.gch/opencv_imgproc_Release.gch d:/gnu/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../libmingw32.a(main.o):main.c:(.text+0xd2): undefined reference to `WinMain@16' collect2: ld returned 1 exit status However, if I turn to gcc 4.4.0, it compiles successfully. I am quite confused now about where the problem is. Is the error caused by opencv or gcc? |