Re: Thinking toward mingw64 and mingw-get
"John E. / TDM" <[email protected]>
| Newsgroups | gmane.comp.gnu.mingw.devel |
|---|---|
| Message-ID | <[email protected]> |
On 2/27/2013 5:51 AM, Earnie Boyd wrote: > So were does 64bit gcc look for 32bit headers and libraries when using -m32? GCC's rules for this are, unfortunately, complicated. All but one of the header paths are architecture-agnostic; the single exception has "/32" appended in the case of "-m32". For library search, a copy of every library path is made with "32" or "/32" appended, and these copies are prepended to the search list. Rather than try to explain it in further detail, I'll just paste some prettified output. Header paths (from g++ -m32 -v): <sysroot>/lib/gcc/<arch>/<version>/include/c++ <sysroot>/lib/gcc/<arch>/<version>/include/c++/<arch>/32 <sysroot>/lib/gcc/<arch>/<version>/include/c++/backward <sysroot>/lib/gcc/<arch>/<version>/include <sysroot>/include <sysroot>/lib/gcc/<arch>/<version>/include-fixed <sysroot>/<arch>/include /mingw/include Library paths (from g++ -m32 -print-search-dirs): <sysroot>/lib/gcc/<arch>/<version>/32 <sysroot>/lib/gcc/32 <sysroot>/<arch>/lib/<arch>/<version>/32 <sysroot>/<arch>/lib32 /mingw/lib/<arch>/<version>/32 /mingw/lib32 <sysroot>/lib/gcc/<arch>/<version> <sysroot>/lib/gcc <sysroot>/<arch>/lib/<arch>/<version> <sysroot>/<arch>/lib /mingw/lib/<arch>/<version> /mingw/lib -John E. / TDM ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb