This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcc and iostream - final issue

Hi Brian,

I did try all the items mentioned, and none have helped so far.  The error
states that I can get it into are:

1.  use full std:: qualifier in which case it cries at compile time about cout
not being in namespace std

2.  It complains at link time that cout is an undefined reference.  Still
without the std::

Just to address all issues in a list:

1.  Putting libraries at the end has not helped
2.  I'm using g++ only now in both compile and link stages...Just out of
curiousity though, isn't gcc supposed to 'call' g++ internally based on the file
3.  In terms of cygwin handling C:\ type paths.  It always seem to be able to,
but I will try to fully qualify them with /cygdrive/c/...

Just to clarify.  I'm using G++, but the code makes some use of the conio
functions which need then be linked with the mingw libraries.  I figured that
should only inlcude the mingw headers/libraries (including the stdc++ one),
instead of the one provided in the other g++ dirs.  Hence the use the attempted
uses of -nocygwin and -nostdinc++.

exact compilation line (bare in mind, its been through several iterations):

SysHdrPath +=C:\cygwin\usr\include\mingw;
SysHdrPath +=C:\cygwin\usr\include\mingw\g++-3;
SysHdrPath +=C:\cygwin\usr\include\mingw\sys

$(CC_FLAGS_386) $(CC_DBG_FLAG_386) $(CC_OPT_PCH) #bunch of -D..flags
-D$(CC_DEFS_386,W -D)
-I$(HdrPath:;= -I)
-isystem$(SysHdrPath:;= -isystem)

Linking (using clearcase the %foreach turns out correctly)
   -mno-cygwin  -g -o$(_Target)
   %foreach Link in $(LinkFiles) 



Quoting Brian Ford <>:

> On Fri, 31 Oct 2003 wrote:
> > Okay all,
> >
> > I think I've narrowed down the issue to a conflict with mingw.  This is
> mingw
> > installed via cygwin setup not the stand alone version.
> >
> Could you please repost your exact command line and the resulting output
> after following the suggestion here:
> and all these except the first one here:
> which was corrected here:
> Did you really follow and try all these?  We have not "seen" these
> results yet.
> -- 
> Brian Ford
> Senior Realtime Software Engineer
> VITAL - Visual Simulation Systems
> FlightSafety International
> Phone: 314-551-8460
> Fax:   314-551-8444
> --
> Unsubscribe info:
> Problem reports:
> Documentation:
> FAQ:         

This mail sent through

Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]