Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » build error on eclipse+cdt+minGW
build error on eclipse+cdt+minGW [message #138024] Sun, 06 February 2005 00:31 Go to next message
Eclipse UserFriend
Originally posted by: gangliubusiness.yahoo.com

hello,

I faced a application build problem using Managed Make C++ project in
CDT/minGW. I have read CDT/minGW documents and searched CDT newsgroups and
web, but didn't find solution. Hope can get ideas from here.

What is working?
----------------
Standard Make Project for the same application.

What is not working?
--------------------
Managed Make C++ project for the same applicaton. here is console output:
....
Building target: HelloWorld.exe
g++ -o HelloWorld.exe main.o
D:/ProgramFiles/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../ libmingw32.a(main.o)(.text+0x106):
undefined reference to `WinMain@16'
collect2: ld returned 1 exit status
mingw32-make: *** [HelloWorld.exe] Error 1
mingw32-make: Target `all' not remade because of errors.
Build complete for project HelloWorld
....

Version Information
-------------------
eclipse 3.0.1
CDT 2.1.0
MinGW-3.2.0-rc-3.exe

thank you for your help

Tim
Re: build error on eclipse+cdt+minGW [message #138058 is a reply to message #138024] Mon, 07 February 2005 00:37 Go to previous messageGo to next message
Sean Evoy is currently offline Sean EvoyFriend
Messages: 195
Registered: July 2009
Senior Member
Tim,
This is a linker error and the only time I have seen it is when there is
no main method in your source code. Check that first.

Sean

Tim wrote:
> hello,
>
> I faced a application build problem using Managed Make C++ project in
> CDT/minGW. I have read CDT/minGW documents and searched CDT newsgroups
> and web, but didn't find solution. Hope can get ideas from here.
>
> What is working?
> ----------------
> Standard Make Project for the same application.
>
> What is not working?
> --------------------
> Managed Make C++ project for the same applicaton. here is console output:
> ...
> Building target: HelloWorld.exe
> g++ -o HelloWorld.exe main.o
> D:/ProgramFiles/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../ libmingw32.a(main.o)(.text+0x106):
> undefined reference to `WinMain@16'
> collect2: ld returned 1 exit status
> mingw32-make: *** [HelloWorld.exe] Error 1
> mingw32-make: Target `all' not remade because of errors.
> Build complete for project HelloWorld
> ...
>
> Version Information
> -------------------
> eclipse 3.0.1
> CDT 2.1.0
> MinGW-3.2.0-rc-3.exe
>
> thank you for your help
>
> Tim
>
Re: build error on eclipse+cdt+minGW [message #138069 is a reply to message #138058] Mon, 07 February 2005 06:14 Go to previous message
Eclipse UserFriend
Originally posted by: gangliubusiness.yahoo.com

Sean,

It is working now. thank you

Tim

Sean Evoy wrote:

> Tim,
> This is a linker error and the only time I have seen it is when there is
> no main method in your source code. Check that first.

> Sean

> Tim wrote:
>> hello,
>>
>> I faced a application build problem using Managed Make C++ project in
>> CDT/minGW. I have read CDT/minGW documents and searched CDT newsgroups
>> and web, but didn't find solution. Hope can get ideas from here.
>>
>> What is working?
>> ----------------
>> Standard Make Project for the same application.
>>
>> What is not working?
>> --------------------
>> Managed Make C++ project for the same applicaton. here is console output:
>> ...
>> Building target: HelloWorld.exe
>> g++ -o HelloWorld.exe main.o
>>
D:/ProgramFiles/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../ libmingw32.a(main.o)(.text+0x106):
>> undefined reference to `WinMain@16'
>> collect2: ld returned 1 exit status
>> mingw32-make: *** [HelloWorld.exe] Error 1
>> mingw32-make: Target `all' not remade because of errors.
>> Build complete for project HelloWorld
>> ...
>>
>> Version Information
>> -------------------
>> eclipse 3.0.1
>> CDT 2.1.0
>> MinGW-3.2.0-rc-3.exe
>>
>> thank you for your help
>>
>> Tim
>>
Previous Topic:how to make menu for "makefile"
Next Topic:Adapting managed make to an alternate compiler
Goto Forum:
  


Current Time: Fri Apr 26 04:49:22 GMT 2024

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

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

Back to the top