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 towinmain' /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

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -