This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
CNI compile error
- To: java at gcc dot gnu dot org
- Subject: CNI compile error
- From: Weiqi Gao <weiqigao at networkusa dot net>
- Date: 26 Jun 2001 07:36:51 -0500
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