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; 20+ 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] 20+ messages in thread
* RE: CFORTRAN for cygwin/egcs?
@ 1999-03-16  3:02 Billinghurst, David (RTD)
  1999-03-31 19:45 ` Billinghurst, David (RTD)
  0 siblings, 1 reply; 20+ messages in thread
From: Billinghurst, David (RTD) @ 1999-03-16  3:02 UTC (permalink / raw)
  To: cygwin; +Cc: Richard Stanton

Yes please.  I'd love an example of a DLL callable from Excel

> -----Original Message-----
> From:	Mumit Khan [SMTP:khan@xraylith.wisc.EDU]
> Sent:	Tuesday 16 March 1999 19:47
> To:	Richard Stanton
> Cc:	cygwin@sourceware.cygnus.com
> Subject:	Re: CFORTRAN for cygwin/egcs? 
> 
> "Richard Stanton" <stanton@haas.berkeley.edu> writes:
> > It IS trivial to use, I've found, as long as you use version 3.5 rather
> than
> > 2.8. The latter seems to be more easily found. As you say,
> > using -Df2cFortran, and linking with -lg2c, gets the sample program to
> > compile without warnings.
> 
> Thank you. That's very useful information, especially since it goes into
> the mailing list archive.
> 
> BTW, can I use your Excel DLL as an example (with proper attribution of
> course)?  I'd like to create some examples in C, C++ and F77 to create
> DLLs for VB/Excel etc like I've done for Java etc.
> 
> Regards,
> Mumit
> 
> 
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

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

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

Thread overview: 20+ 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
1999-03-16  3:02 CFORTRAN for cygwin/egcs? Billinghurst, David (RTD)
1999-03-31 19:45 ` Billinghurst, David (RTD)

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