On 16/03/2014 18:03, zosrothko wrote:
Hi
Dear,
re-opening a thread dead 3 years ago, is NOT a good way to have
any answer here.
If you have any problem, please follow
Problem reports: http://cygwin.com/problems.html
start a new thread and clarify your need or doubts
Regards
Marco
Hi
Here the definition of the cmain.c program, part of libcygwin.a. This code
has a "main" entry point which is calling the WinMain by the end So the
question remains: Why g++/ld links with this "main" entry instead of the one
of the user's main program?
zos
/* libcmain.c
Copyright 1996
On Sat, Oct 22, 2011 at 9:18 PM, Philipp Kraus wrote:
> Hello,
>
> I use Cygwin with g++ for compiling my source codes and on some codes I get
> the error:
>
> /usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../libcygwin.a(libcmain.o):(.text+0xa9):
> undefined reference to `_WinMain@16'
If there is no ma
On 10/23/2011 12:52 PM, René Berber wrote:
> Perhaps looking at the link map will clarify what is going on:
>
> g++ -Wl,-M ... > link-map.txt
Or better, use the linker trace symbol functionality:
g++ -Wl,-trace-symbol=_WinMain ...
--
René Berber
--
Problem reports: http:
On 10/23/2011 5:07 AM, Philipp Kraus wrote:
> On 2011-10-23 01:28:37 +0200, René Berber said:
>
>> I'm not sure why this static library is pulled.
>
> yes *g* that my problem also. My cygwin g++ / ld
> links it automatically
Where it comes from? The compiler specs:
$ g++ -dumpspecs
...
*lib:
On 2011-10-23 01:37:19 +0200, René Berber said:
On 10/22/2011 6:28 PM, René Berber wrote:
I also don't know what it is [libcygwin.a]
Looking at where it came from, libg.a is a symlink to this one, and libg
is known as "special debugging-enabled C library".
Still don't know what its doing in
On 2011-10-23 01:28:37 +0200, René Berber said:
I'm not sure why this static library is pulled.
yes *g* that my problem also. My cygwin g++ / ld
links it automatically
Phil
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation
On 10/22/2011 6:28 PM, René Berber wrote:
> I also don't know what it is [libcygwin.a]
Looking at where it came from, libg.a is a symlink to this one, and libg
is known as "special debugging-enabled C library".
Still don't know what its doing in your program.
--
René Berber
--
Problem report
On 10/22/2011 5:48 PM, Philipp Kraus wrote:
> I have checked each library (*.dll, *.a, *.dll.a) but no library file as
> got a reference to the _WinMain
> and I use the -mconsole linker flag. I don't understand why the linker
> creates the error on some
> codes and on other code there is no error.
On 2011-10-22 23:43:32 +0200, René Berber said:
On 10/22/2011 3:37 PM, Philipp Kraus wrote:
[snip]
error
is created again. Should I rebuild my libraries with the -mconsole
option, at the time
I have build them only with configure, make, make install?
You can check which libraries have a refe
On 10/22/2011 3:37 PM, Philipp Kraus wrote:
[snip]
> error
> is created again. Should I rebuild my libraries with the -mconsole
> option, at the time
> I have build them only with configure, make, make install?
You can check which libraries have a reference to _WinMain@16 by using nm.
$ nm /usr/
Thanks for your great answer.
On 2011-10-22 22:17:06 +0200, René Berber said:
On 10/22/2011 2:18 PM, Philipp Kraus wrote:
I use Cygwin with g++ for compiling my source codes and on some codes I
get the error:
/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../libcygwin.a(libcmain.o):(.text+0xa9):
On 10/22/2011 2:18 PM, Philipp Kraus wrote:
> I use Cygwin with g++ for compiling my source codes and on some codes I
> get the error:
>
> /usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../libcygwin.a(libcmain.o):(.text+0xa9):
> undefined reference to `_WinMain@16'
[snip]
That means the linking is bein
13 matches
Mail list logo