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] Sat, 05 February 2005 19:31 Go to next message
Eclipse User
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] Sun, 06 February 2005 19:37 Go to previous messageGo to next message
Sean Evoy is currently offline Sean Evoy
Messages: 197
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 01:14 Go to previous message
Eclipse User
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: Wed Aug 27 11:11:50 EDT 2014

Powered by FUDForum. Page generated in 0.10305 seconds