Crossed-native build not picking up native runtime #include
Vegan Peace
wembar@veganpeace.com
Fri Mar 14 14:17:00 GMT 2003
Ranjit,
I'm running into a problem. If you can't answer this in a couple of seconds, don't worry
about it - I'll look into myself.
I coded up scandir() and alphasort() for the MingW runtime. (Off topic: I did this entirely
from the specs and didn't even look at GPL code when doing this, so I think it should
be suitable for inclusion in mingwex if they want it. Who do I give it to?)
I dropped this new runtime in the appropriate places for the cross and crossed-native
compiler. I didn't rebuild the cross compiler, but started to build a new crossed-native
compiler from scratch.
Although the configure process for the crossed-native compiler seemed to detect
scandir() and alphasort() and set JCF_USE_SCANDIR for appropriately, the build
doesn't seem to see my new dirent.h and is giving me the following compile error
in jcf-io.c (sorry about the long lines):
/datal/gcc/build/crossgcc/bin/mingw32-gcc -c -O2 -g0 -pipe -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -DHAVE_CONFIG_H -DCYGWIN_CROSS_DIR=
\"/datal/gcc/build/wingcc/mingw32\" -I. -Ijava -I/datal/gcc/gcc/gcc -I/datal/gcc/gcc/gcc/java -I/datal/gcc/gcc/gcc/config -I/datal/gcc/gcc/gcc/../include -I/datal/gcc/gcc/gcc/../zlib \
/datal/gcc/gcc/gcc/java/jcf-io.c -o java/jcf-io.o
/datal/gcc/gcc/gcc/java/jcf-io.c: In function `caching_stat':
/datal/gcc/gcc/gcc/java/jcf-io.c:387: warning: implicit declaration of function `scandir'
/datal/gcc/gcc/gcc/java/jcf-io.c:389: error: `alphasort' undeclared (first use in this function)
/datal/gcc/gcc/gcc/java/jcf-io.c:389: error: (Each undeclared identifier is reported only once
/datal/gcc/gcc/gcc/java/jcf-io.c:389: error: for each function it appears in.)
A couple of questions:
- Is -DCYGWIN_CROSS_DIR=\"/datal/gcc/build/wingcc/mingw32\" sufficient for
my new include file to be picked up? (Apparently not.)
- If not, what am I doing wrong that's causing my new include file not to be picked up?
(Like I said before, I've put the new runtime in both the cross compiler and crossed native
compiler directories.)
Thanks for looking at this.
-- Mohan
http://www.thisiscool.com/
http://www.animalsong.org/
More information about the Java
mailing list