Topic: Linking Prolog, C and C++


Author: klooster@sun019.research.ptt.nl (Sietse Kloosterman)
Date: Fri, 12 Nov 1993 10:35:01 GMT
Raw View
Hi,

At the moment I'm trying to link a Quintus Prolog file and a C object file
to several C++ object files using the Unix cc compiler and the CenterLine C++ CC
compiler. The situation is as follows:

I have a C file a.c which, together with a compiled prolog file b.qof, is compiled
into a.o (using Quintus tools qpc, qld and the cc compiler).
Then I want to link a.o to several C++ object files, say c.o and d.o.

Now the problem is that the linker complains about undefined symbols, which are
exactly those symbols defined in the C object file a.o!
So, the symbols *are* defined, but the linker does not recognize them as such.

Can someone explain this behaviour?

Thanks and regards,

Sietse Kloosterman
S.H.Kloosterman@research.ptt.nl