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: C++ Link Errors


Solution found.  

I had built and installed various alternate versions of gcc into /usr/local.
Despite the fact that I placed /usr/local/bin after /usr/bin in my path so
that I would get the default cygwin gcc for this project, /usr/bin/gcc was
still passing -L/usr/local/lib before -L/usr/lib when it called collect2.

My first solution was to mv away /usr/local/lib/libstdc++.a.  I realize this
is not a longterm solution, but it's a start.

I will try rebuilding my gcc 3.0.3 into /usr and then attempt to use the "-V
2.95.3-5" argument to gcc when I need standard cygwin gcc.

I hope this helps anyone with a similar problem in the future.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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]