build error on eclipse+cdt+minGW [message #138024] |
Sun, 06 February 2005 00:31 |
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 #138069 is a reply to message #138058] |
Mon, 07 February 2005 06:14 |
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
>>
|
|
|
Powered by
FUDForum. Page generated in 0.03687 seconds