Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » _WinMain@16
_WinMain@16 [message #116482] Sun, 22 August 2004 12:46 Go to next message
Eclipse UserFriend
Originally posted by: cazo66.hotmail.com

Hi all!

I'm newbie using the CDT, and suffering to put all things working
fine. Using Cygwin, it finds the library to link, but it appears
some symbols is missing.

Using MS-XP 512Mb RAM, CYGWIN_NT-5.1, CDT 2.0, eclipse 3.0.0

make -k all
Building target: mytst.exe
g++ -omytst.exe MyTest.o
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/../../../libcygwin.a(l ibcmain.o)(.text+0x7a):
undefined reference to `_WinMain@16'
collect2: ld returned 1 exit status
make: *** [mytst.exe] Error 1
make: Target `all' not remade because of errors.
Build complete for project mytst

Thanx!

Claudio Cardozo
Re: _WinMain@16 [message #116488 is a reply to message #116482] Sun, 22 August 2004 13:19 Go to previous messageGo to next message
Eclipse UserFriend
Claudio ,
This isn't a CDT error; it comes from the Cygwin linker. It cannot
create an executable because ou don't have a main method in your code.

Sean


Claudio wrote:
> Hi all!
>
> I'm newbie using the CDT, and suffering to put all things working
> fine. Using Cygwin, it finds the library to link, but it appears
> some symbols is missing.
>
> Using MS-XP 512Mb RAM, CYGWIN_NT-5.1, CDT 2.0, eclipse 3.0.0
>
> make -k all
> Building target: mytst.exe
> g++ -omytst.exe MyTest.o
> /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/../../../libcygwin.a(l ibcmain.o)(.text+0x7a):
> undefined reference to `_WinMain@16'
> collect2: ld returned 1 exit status
> make: *** [mytst.exe] Error 1
> make: Target `all' not remade because of errors.
> Build complete for project mytst
>
> Thanx!
>
> Claudio Cardozo
>
>
Re: _WinMain@16 [message #116495 is a reply to message #116488] Sun, 22 August 2004 15:20 Go to previous message
Eclipse UserFriend
Originally posted by: cazo66.hotmail.com

Sean Evoy wrote:

> Claudio ,
> This isn't a CDT error; it comes from the Cygwin linker. It cannot
> create an executable because ou don't have a main method in your code.

> Sean

Thanx a lot Sean, sometimes the things are so obvious that
come in mind the question "Why did I do that?"...

again, thanx!

--
Claudio
Previous Topic:Code assist and C++ Template classes
Next Topic:Managed C++ project - Editable???
Goto Forum:
  


Current Time: Wed May 28 20:01:27 EDT 2025

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

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

Back to the top