gcc 4.3.0 vs pdftk 1.41
Andrew Haley
aph@redhat.com
Mon Mar 24 11:34:00 GMT 2008
Jack Howarth wrote:
> Has anyone been able to build pdftk with gcc 4.3.0? Using
> the debian patches from their pdftk-1.41-1 package the
> build almost completes. It fails at the very end with...
>> /sw/lib/gcc4.3/bin/g++ pdftk.cc -I../java_libs -O3 -DPATH_DELIM=0x2f -DASK_ABOUT_WARNINGS=false -fdollars-in-identifiers -DPDFTK_VER=\"1.41\" -c
> /sw/lib/gcc4.3/lib/gcc/i686-apple-darwin9/4.3.1/../../../../include/c++/4.3.1/bits/ostream_insert.h: In function 'std::basic_ostream<_CharT, _Traits>& std::__ostream_insert(std::basic_ostream<_CharT, _Traits>&, const _CharT*, std::streamsize) [with _CharT = char, _Traits = std::char_traits<char>]':
> /sw/lib/gcc4.3/lib/gcc/i686-apple-darwin9/4.3.1/../../../../include/c++/4.3.1/ostream:517: instantiated from 'std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, const char*) [with _Traits = std::char_traits<char>]'
> pdftk.cc:114: instantiated from here
> /sw/lib/gcc4.3/lib/gcc/i686-apple-darwin9/4.3.1/../../../../include/c++/4.3.1/bits/ostream_insert.h:107: error: mixing C++ and Java catches in a single translation unit
>> This occurs with the 20080320 gcc-4.3 snapshot. Thanks in advance for any insights on how this
> issue can be worked around.
I've no idea at all. If you can put a complete test case somehwere, with full
instructions about how to reproduce the problem, I can have a look.
Andrew.
More information about the Java
mailing list