This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
I have been trying to build a working cross-gcj for armv5l and armv5b and finally succeeded in it - thanks to crosstool-0.28-rc32! However, now I have run into some problems with c++, especially while compiling c++ files which call Java methods through CNI.
First of all, g++ is not able to found header files from ${prefix}/include
although e.g. ffi.h and all the other Java headers are properly installed
there.
Sounds like I need to add a 'hello, java' test to testhello.sh in crosstool, and then fix the problems it detects. Maybe the prefix for libgcj needs to be adjusted if sysroot is being used.
Then, if I explicitly add that directory using -I I get tons of errors:
arm-unknown-linux-gnu-g++ -I/opt/cross/arm-linux-3.4.0/include -o cni cni-test.cpp -lgcj In file included from /opt/cross/arm-linux-3.4.0/include/java/lang/Object.h:16, from /opt/cross/arm-linux-3.4.0/include/gcj/cni.h:16, from cni-test.cpp:2: /opt/cross/arm-linux-3.4.0/include/gcj/javaprims.h:90: error: stray '$' in program ...
Does anyone have a clue what's wrong? I've been trying both gcc 3.4.0 and 3.4.1.
Nope, other than perhaps you're trying to include Java source into a C++ program? I've never played with gcj at all, so I'm pretty useless here. - Dan
-- My technical stuff: http://kegel.com My politics: see http://www.misleader.org for examples of why I'm for regime change
------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |