From: Mumit Khan <khan@xraylith.wisc.EDU>
To: Greg Miller <gmiller@classic-games.com>
Cc: cygwin@sourceware.cygnus.com
Subject: Re: linking and iostreams
Date: Fri, 12 Mar 1999 16:38:00 -0000 [thread overview]
Message-ID: <199903130037.SAA00256@modi.xraylith.wisc.edu> (raw)
In-Reply-To: Your message of "Fri, 12 Mar 1999 16:51:22 CST." < 36E99A6A.FC36E7F@classic-games.com >
Greg Miller <gmiller@classic-games.com> writes:
> Mumit Khan wrote:
> >
> > Greg Miller <gmiller@classic-games.com> writes:
> > > but generates numerous undefined references during linking when compiled
> > > with:
> > >
> > > g++ -mno-cygwin test.c
>
> Oops.. just noticed an error here... That should have been:
>
> g++ -mno-cygwin test.c -L //d/cygnus/cygwinb20/mingw-libs
>
> In any event, is it linking the wrong libstdc++.a despite the "-L"
> switch? or is something else wrong?
I can't tell unless you include some of the undefined symbols. BTW,
I've updated my egcs-1.1.1-mingw-extra package to include both the
required libs and includes (_G_config.h).
The linker has a verbose option that helps. Similarly, the compiler
has a -H option that shows the includes being included.
$ g++ -mno-cygwin -H -c test.c
shows the includes.
$ g++ -mno-cygwin -Wl,--verbose test.o
shows the libraries being linked in (prints loads of output!)..
Both of these switches are very useful for debugging a problem like
yours.
Regards,
Mumit
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
WARNING: multiple messages have this Message-ID
From: Mumit Khan <khan@xraylith.wisc.EDU>
To: Greg Miller <gmiller@classic-games.com>
Cc: cygwin@sourceware.cygnus.com
Subject: Re: linking and iostreams
Date: Wed, 31 Mar 1999 19:45:00 -0000 [thread overview]
Message-ID: <199903130037.SAA00256@modi.xraylith.wisc.edu> (raw)
Message-ID: <19990331194500.vkrcxD0dR-FMsedIUDDj5x8N0wHugddOP1RFD3h7RBE@z> (raw)
In-Reply-To: <36E99A6A.FC36E7F@classic-games.com>
Greg Miller <gmiller@classic-games.com> writes:
> Mumit Khan wrote:
> >
> > Greg Miller <gmiller@classic-games.com> writes:
> > > but generates numerous undefined references during linking when compiled
> > > with:
> > >
> > > g++ -mno-cygwin test.c
>
> Oops.. just noticed an error here... That should have been:
>
> g++ -mno-cygwin test.c -L //d/cygnus/cygwinb20/mingw-libs
>
> In any event, is it linking the wrong libstdc++.a despite the "-L"
> switch? or is something else wrong?
I can't tell unless you include some of the undefined symbols. BTW,
I've updated my egcs-1.1.1-mingw-extra package to include both the
required libs and includes (_G_config.h).
The linker has a verbose option that helps. Similarly, the compiler
has a -H option that shows the includes being included.
$ g++ -mno-cygwin -H -c test.c
shows the includes.
$ g++ -mno-cygwin -Wl,--verbose test.o
shows the libraries being linked in (prints loads of output!)..
Both of these switches are very useful for debugging a problem like
yours.
Regards,
Mumit
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
next prev parent reply other threads:[~1999-03-12 16:38 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-03-12 12:12 Greg Miller
[not found] ` < 36E9744E.790549C@classic-games.com >
1999-03-12 14:34 ` Mumit Khan
1999-03-12 14:54 ` Greg Miller
[not found] ` < 36E99A6A.FC36E7F@classic-games.com >
1999-03-12 16:38 ` Mumit Khan [this message]
1999-03-12 19:14 ` Greg Miller
1999-03-31 19:45 ` Greg Miller
[not found] ` < 199903130037.SAA00256@modi.xraylith.wisc.edu >
1999-03-15 10:35 ` CFORTRAN for cygwin/egcs? Richard Stanton
[not found] ` < 000f01be6f12$cf737f60$893a85d1@CONNOR.berkeley.edu >
1999-03-15 14:27 ` Mumit Khan
[not found] ` < Pine.SUN.3.93.990315162021.2930I-100000@modi.xraylith.wisc.edu >
1999-03-15 17:58 ` Richard Stanton
[not found] ` < 000b01be6f50$74ce5a60$9e3a85d1@CONNOR.berkeley.edu >
1999-03-16 0:47 ` Mumit Khan
1999-03-31 19:45 ` Mumit Khan
1999-03-31 19:45 ` Richard Stanton
1999-03-31 19:45 ` Mumit Khan
1999-03-31 19:45 ` Richard Stanton
1999-03-31 19:45 ` linking and iostreams Mumit Khan
1999-03-31 19:45 ` Greg Miller
1999-03-31 19:45 ` Mumit Khan
1999-03-31 19:45 ` Greg Miller
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=199903130037.SAA00256@modi.xraylith.wisc.edu \
--to=khan@xraylith.wisc.edu \
--cc=cygwin@sourceware.cygnus.com \
--cc=gmiller@classic-games.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).