On 24/06/06, Jeremy Boynes <[EMAIL PROTECTED]> wrote:
I used this binary distro but my machine is Fedora Core3. I got the following problem building the Calculator sample: g++ -g -O2 -o calculator_client Calc.o -L/home/jeremy/Desktop/tuscany_sca-bin-0.1.incubating-M1/lib -ltuscany_sca -L/home/jeremy/Desktop/tuscany_sdo-bin-0.1.incubating-M1/lib -ltuscany_sdo -ltuscany_sdo_axiom -L/home/jeremy/Desktop/axis2c-bin-0.92-linux/lib -laxis2_util -laxis2_axiom -laxis2_wsdl -laxis2_engine -laxis2_parser -laxis2_minizip -lpthread -laxis2_http_sender -laxis2_http_receiver /usr/bin/ld: warning: libtuscany_sca_ws_reference.so.0, needed by /home/jeremy/Desktop/tuscany_sca-bin-0.1.incubating-M1 /lib/libtuscany_sca.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libstdc++.so.5, needed by /home/jeremy/Desktop/tuscany_sca-bin-0.1.incubating-M1 /lib/libtuscany_sca.so, may conflict with libstdc++.so.6 /home/jeremy/Desktop/tuscany_sca-bin-0.1.incubating-M1 /lib/libtuscany_sca.so: undefined reference to `tuscany::sca::ws::WSServiceWrapper::WSServiceWrapper(tuscany::sca::model::WireTarget*)' I assume the conflict on libstc++ is due to distro issues. If I added -ltuscany_sca_ws_reference to the automake files then it built and I was able to run the basic sample :-) Maybe someone can enlighten me wrt linking on linux with automake. If I create a lib A which references libs x,y and z, and z references P, Q and R... when I come to build an executable MyEXE I need to have -lA -lx -ly -lz -lP -lQ -lR. Is this correct? It seems odd that I need to know all the dependencies of the things I depend on. Cheers, -- Pete