Re: Compiling problems



Hey,

On Tue, 23 Apr 2002, Katherine Goude wrote:

> I'm very new to ORBit and have just attmpted my first ORBit2
> client/server program where the client just asks the server to add 2
> numbers together. I've written a Makefile (added below) to compile the
> code but get errors when doing a "make build" ("make skeleton" works
> fine) saying undefined reference to TC_CORBA_double_struct. But I know
> that the definition for TC_CORBA_double_struct is in
> /usr/local/include/orbit-2.0/orbit/orb-core/corba-typecode.h and I have
> definitely included this directory in my Makefile.
>
> Where am I going wrong?? I would REALLY appreciate some help :-)

> ORBIT_LIBS = -L/usr/local/lib -lIDL-2 -lgobject-2.0 -lgmodule-2.0 -lIIOP
> -lORBitutil -ldl -lglib-2.0 -lm -llinc -lgthread-2.0 -lpthread

	You'll need to change this to

ORBIT_LIBS = -L/usr/local/lib -lORBit-2 -lIDL-2 -lgobject-2.0  \
             -lgmodule-2.0 -ldl -lglib-2.0 -lm -llinc -lgthread-2.0 -lpthread

	Or You could just do

CFLAGS = $(shell pkg-config --cflags ORBit-2.0)
LFLAGS = $(shell pkg-config --libs ORBit-2.0)

Good Luck,
Mark.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]