[MWy] chyby pri prekladu

Jakub MalĂ˝ jakub at maly.cz
Mon Apr 7 09:52:55 CEST 2008


Zkousel jsem upravit ukazkovy makefile z examplu pro master.idl a pri
prekladu mi to vyhodi nasledujici serii hlasek:

g++ -I /afs/ms/u/m/malyj4am/BIG/omniORB/include -o client -Wl,-rpath
/afs/ms/u/m/malyj4am/BIG/omniORB/lib -L
/afs/ms/u/m/malyj4am/BIG/omniORB/lib -lomniORB4 masterSK.o client.o
masterSK.o: In function `master::request_t::operator>>=(cdrStream&) const':
masterSK.cpp:(.text+0x3ce1): undefined reference to
`CORBA::Any::operator>>=(cdrStream&) const'
masterSK.o: In function `master::request_t::operator<<=(cdrStream&)':
masterSK.cpp:(.text+0x3eb1): undefined reference to
`CORBA::Any::operator<<=(cdrStream&)'
masterSK.o: In function `master::request_t::~request_t()':
masterSK.cpp:(.text._ZN6master9request_tD1Ev[master::request_t::~request_t()]+0x11):
undefined reference to `CORBA::Any::~Any()'
masterSK.o: In function `master::request_t::request_t()':
masterSK.cpp:(.text._ZN6master9request_tC1Ev[master::request_t::request_t()]+0x1c):
undefined reference to `CORBA::Any::Any()'
collect2: ld returned 1 exit status

Nedovedl by nekdo poradit, co s tim?

Makefile mam takovy:

PREFIX= $(HOME)/BIG/omniORB
CFLAGS= -I $(PREFIX)/include

all: client

master.h masterSK.cpp: master.idl
       PYTHONPATH="$(PREFIX)/lib/python2.4/site-packages"
$(PREFIX)/bin/omniidl -bcxx -Wbh=.h -Wbs=SK.cpp master.idl

masterSK.o: masterSK.cpp master.h
       g++ $(CFLAGS) -c -o $@ masterSK.cpp

client.o: client.cpp master.h
       g++ $(CFLAGS) -c -o $@ client.cpp

client: masterSK.o client.o
       g++ $(CFLAGS) -o $@ -Wl,-rpath $(PREFIX)/lib -L $(PREFIX)/lib
-lomniORB4 masterSK.o client.o

clean:
       rm -f *.o server client master.h masterSK.cpp




More information about the NSWI080 mailing list