cygwin - Error "undefined reference to `WinMain' "in Eclispse C++ on Windows in Blank C++ Project -
i getting error when compiling hello world code in eclipse in new executable blank c++ project, when choose new executable hello world c++ project there no error
/usr/lib/gcc/x86_64-pc-cygwin/5.4.0/../../../../lib/libcygwin.a(libcmain.o): in function
main': /usr/src/debug/cygwin-2.8.2-1/winsup/cygwin/lib/libcmain.c:37: undefined reference to
winmain' /usr/src/debug/cygwin-2.8.2-1/winsup/cygwin/lib/libcmain.c:37:(.text.startup+0x7f): relocation truncated fit: r_x86_64_pc32 against undefined symbol `winmain' collect2: error: ld returned 1 exit status
Comments
Post a Comment