This is the mail archive of the cygwin 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: Mysterious g++ link problems


David Abrahams wrote:

You are using the wrong libstdc++.a runtime. Try to figure out why
/usr/local/gcc is using /usr/lib/gcc runtime instead of your own /usr/local/lib/gcc runtime.


I'm not using /usr/local/gcc.  I assume you meant
/usr/local/gcc=3.4.4/bin/g++?

Yes. You're calling /usr/local/gcc-3.4.4/bin/g++.exe. Was the runtime also installed below /usr/local/gcc-3.4.4/... or maybe it was installed to /usr/lib/gcc/..., then it wass clobbered by the official release.


I'd like to try to "figure out why," but I don't know where to start
looking.


Suggested solution: either uninstall your local build of gcc and use
the 'official' Cygwin gcc build or uninstall the official release.


I'm happy to use the official one, but I'd still like to understand
what happened.

Try `/usr/local/gcc-3.4.4/bin/g++.exe -print-search-dirs` or `/usr/local/gcc-3.4.4/bin/gcc -print-search-dirs`, this gives for the Cygwin release: libraries: =/usr/lib/gcc/i686-pc-cygwin/3.4.4/:...


Gerrit


--
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]