Crossed-native build not picking up native runtime #include
Mohan Embar
gnustuff@thisiscool.com
Fri Mar 14 23:59:00 GMT 2003
Ranjit,
I think I figured it out.
I had told you that I hadn't rebuilt the cross compiler, deeming it to be
unneccessary. Here is what seems to have happened:
- when I had first configured the cross compiler, the --with-headers line in your
configure script made it copy the headers I had unpacked into
$XGCC_DIR/mingw32/include to $XGCC_DIR/mingw32/sys-include, which comes
earlier in the include path
- later, I unpacked my new runtime, creating a new $XGCC_DIR/mingw32/include/dirent.h,
but leaving the old one in $XGCC_DIR/mingw32/sys-include untouched
- the configure script for the crossed-native compiler merely defines a bogus
prototype for scandir and tests for link-time existence of the function, which
succeeds because scandir is present in my new library
- when trying to compile jcf-io.c, the compiler complains that scandir doesn't
exist because it picks up the old dirent.h header in $XGCC_DIR/mingw32/sys-include
-- Mohan
http://www.thisiscool.com/
http://www.animalsong.org/
More information about the Java
mailing list