From: Csaba Raduly <rcsaba@gmail.com>
To: cygwin@cygwin.com
Subject: Re: g++ linker problem with libcygwin.a
Date: Sun, 23 Oct 2011 18:22:00 -0000 [thread overview]
Message-ID: <CAEhDDbCLXuq43RBo+9+xmXDpwbikqQwKiFgt6oAd-oefDcLhew@mail.gmail.com> (raw)
In-Reply-To: <j7v4u7$il0$1@dough.gmane.org>
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 main(), libcygwin.a gives you a last chance: maybe
there is a WinMain function defined in your code, which will be called
by libc to start the program.
(or something like that)
Csaba
--
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
The Tao of math: The numbers you can count are not the real numbers.
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
prev parent reply other threads:[~2011-10-23 18:22 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-22 19:19 Philipp Kraus
2011-10-22 20:17 ` René Berber
2011-10-22 20:37 ` Philipp Kraus
2011-10-22 21:44 ` René Berber
2011-10-22 22:49 ` Philipp Kraus
2011-10-22 23:29 ` René Berber
2011-10-22 23:37 ` René Berber
2011-10-23 10:38 ` Philipp Kraus
2011-10-23 10:07 ` Philipp Kraus
2011-10-23 17:53 ` René Berber
2011-10-23 17:58 ` René Berber
2014-03-17 1:57 ` zosrothko
2014-03-17 2:28 ` Marco Atzeri
2011-10-23 18:22 ` Csaba Raduly [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAEhDDbCLXuq43RBo+9+xmXDpwbikqQwKiFgt6oAd-oefDcLhew@mail.gmail.com \
--to=rcsaba@gmail.com \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).