This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


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

HELP: Cross-compiler not finding C++ header files.


Hello all,

	I've built an i586-Linux to i586-cygwin32 cross compiler based on
egcs v1.1.1.  I've been trying to get the C++ compiler to look for the C++
headers in /usr/local/i586-cygwin32/include/g++ (without having to use -I 
on the command line or environment variables). So far, I have been
unsuccessful.

	During configuration, I specify the --with-local-prefix switch and
set that to /usr/local/i586-cygwin32/include and the
--with-gxx-include-dir switch and set that to
/usr/local/i586-cygwin32/include/g++.  However, this doesn't seem to work.
The preprocessor looks in
/usr/local/lib/gcc-lib/i586-cygwin32/egcs-2.91.60/include and in
/usr/local/i586-cygwin32/include, but doesn't look in
/usr/local/i586-cygwin32/include/g++ :-(.

	Is this a bug in the configuration scripts when building a cross
compiler?  Or is this normal behavior?  I can live with just dumping all
the C++ headers in /usr/local/i586-cygwin32/include, but I would rather
keep them seperate and stick them in /usr/local/i586-cygwin32/include/g++.

	There also seems to be a problem trying to use the
--enable-version-specific-runtime-libs switch when trying to build a cross
compiler.  When building a native compiler for i586-linux it seems to
work: the C++ headers gets installed into
/usr/local/lib/gcc-lib/i586-linux/egcs-2.91.60/include/g++ and the
preprocessor looks there for them like its supposed to.  And libstdc++.a
gets dropped into /usr/local/lib/gcc-lib/i586-linux/egcs-2.91.60.  

	However, when trying to build a cross compiler for a i586-cygwin32
target, the headers still installed into
/usr/local/lib/gcc-lib/i586-cygwin32/egcs-2.91.60/include/g++ but the
preprocessor does not look there.  And libstdc++.a gets installed into
/usr/local/i586-cygwin32/lib instead of
/usr/local/lib/gcc-lib/i586-cygwin32/egcs-2.91.60.

	Any insights into this matter would be greatly appreciated!
Thanks!

---
=====================================================================
Arcadio Alivio Sincero Jr.              
Computer Science Major, University of Maryland Baltimore County

WWW: http://www.sinceronet.ddns.org (COMING REAL SOON NOW(tm)!!!)
E-Mail: mailto:asincero@sinceronet.ddns.org
Snail mail: P.O. Box 2081, Annapolis MD, 21404-2081

"NT disaster recovery isn't all the difficult.  Just follow the
 simple instructions that come with the Linux CD."



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