This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Objects tied in by Linker
Lehner, Michael writes:
>
> I am compiling a Java Sources with gcj to native machine code for a
> mips target and our project is using Greenhills compiler, so I have
> to use Greenhills to compile the rest of the project and to link
> the whole thing.
That probably won't work. gcc (and gcj) assume that their own
libraries are present. The symbols you're missing are part of libgcc.
Also, gcj uses the C++ ABI, and you can't guarantee the Greenhills C++
ABI is the same. If you compile all Java and C++ code with gcc, and
make sure that all the gcc runtime libraries are used, then it might
work. But I suspect your problems are just starting.
Andrew.