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


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

CNI compile error


Hi,

While compiling the CNI samples linked from here:
http://gcc.gnu.org/java/cni-1.txt, I encountered this compile time
error:

[weiqi@gao cni]$ gcj -I/opt/gcc-3.0/include -c sampNat.cc 
/opt/gcc-3.0/include/g++-v3/bits/ostream.tcc: In function 
   `std::basic_ostream<char, _Traits>&
std::operator<<(std::basic_ostream<char,    _Traits>&, const char*)
[with _Traits = std::char_traits<char>]':
sampNat.cc:11:   instantiated from here
/opt/gcc-3.0/include/g++-v3/bits/ostream.tcc:708: mixing C++ and Java
catches 
   in a single translation unit

Any hints?

-- 
Weiqi Gao
weiqigao@networkusa.net


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