Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Can build my first project in C++(undefined reference to `_WinMain@16')
Can build my first project in C++ [message #543298] Tue, 29 June 2010 01:22
Esau  is currently offline Esau Friend
Messages: 1
Registered: June 2010
Junior Member
It´s my first time using eclipse, i have no problems compiling and building in the batch of cygwin, but i want to try eclipse for faster programming. So my problem is that when I try to build all the project to errors appear:

make: *** [Hello.exe] Error 1
undefined reference to `_WinMain@16'

and i don´t know what to do, does anyone know what can i do to solve this problem?

Also for more info im using windows XP and here is what the console says:


**** Build of configuration Debug for project Hello ****

make all
Building target: Hello.exe
Invoking: Cygwin C++ Linker
g++ -o"Hello.exe" ./test.o
cygwin warning:
MS-DOS style path detected: C:\Programing\Hello\Debug
Preferred POSIX equivalent is: /cygdrive/c/Programing/Hello/Debug
CYGWIN environment variable option "nodosfilewarning" turns off this warning.
Consult the user's guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../libcygwin.a(libcm ain.o)Sad.text+0xa9): undefined reference to `_WinMain@16'
collect2: ld returned 1 exit status
make: *** [Hello.exe] Error 1
Previous Topic:Eclipe CDT + MinGW/MSYS + wxWidgets - detailed Guide
Next Topic:Debugging module private (static) variables
Goto Forum:
  


Current Time: Fri Apr 26 23:23:25 GMT 2024

Powered by FUDForum. Page generated in 0.03042 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top