public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* linking and iostreams
@ 1999-03-12 12:12 Greg Miller
       [not found] ` < 36E9744E.790549C@classic-games.com >
  1999-03-31 19:45 ` Greg Miller
  0 siblings, 2 replies; 18+ messages in thread
From: Greg Miller @ 1999-03-12 12:12 UTC (permalink / raw)
  To: cygwin

This program:

#include <iostream>

int main() {
  cout << "test" << endl;

  return 0;
}

compiles, links, and does what I expect when compiled with B20.1 and
egcs-1.1.1 using this command:

g++ test.c

but generates numerous undefined references during linking when compiled
with:

g++ -mno-cygwin test.c

Notably, it generates a number of references to "__errno" from
libstdc++.a, which, AFAIK, should not include ANY references to
"__errno" in the mingw-libs version.

So what am I doing wrong?
-- 
http://www.classic-games.com/
President Clinton was acquitted; then again, so was O. J. Simpson.
*** NEWBIES: Limit signatures to four lines! No HTML mail or posts! ***

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~1999-03-31 19:45 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-03-12 12:12 linking and iostreams 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
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

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).