This is the mail archive of the cygwin@cygwin.com 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 - resolved


On Fri, 31 Oct 2003 y2bismil@engmail.uwaterloo.ca wrote:

> I got it resolved by doing the following:
>
> 1.  Used dos style names because (I don't think this was needed, but clearcase
> paths...were not setup under the cygwin environment, so I just used the windows cmd.
>
Never feed DOS style paths to Cygwin's gcc/g++.

> 2.  Only included SysHdrPath +=C:/cygwin/usr/include/mingw as the
> system path
>
Don't do that either.

> 3.  DID NOT USE -nostdinc++ in both compile/link
> 4.  used -mno-cygwin in both compile/link
> 5.  DID NOT USE -nodefaultlibs in link
>
All good.

> 6.  still linked with  -lwsock32 -lstdc++ -lgcc, but I think only lwsock32 is
> needed.  But this is good enough for now.
>
Yes, only -lwsock32 is needed.

> In short, I think I ended up messing myself over.
>
Yes!  You're making this *way* too hard.  Just use -mno-cygwin and comple
away.

-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
Phone: 314-551-8460
Fax:   314-551-8444

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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