the tests in camlidl-1.0.5 won't build: > ocamlc -v The Objective Caml compiler, version 3.08.2 Standard library directory: /usr/local/lib/ocaml > cpp --version cpp (GCC) 3.4.4 [FreeBSD] 20050518 Copyright (C) 2004 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. > make ocamlc -I ../lib -cc cc -custom -o testcomp com.cmo comcomp.o component.o component.cmo testcomponent.cmo ../runtime/libcamlidl.a comcomp.o(.text+0xd): In function `create_instance': /home/kmacy/camlidl-1.05/tests/comcomp.cpp:115: undefined reference to `operator new(unsigned int)' comcomp.o(.gnu.linkonce.r._ZTV2IY+0x8):/home/kmacy/camlidl-1.05/tests/comcomp.cpp:115: undefined reference to `__cxa_pure_virtual' comcomp.o(.gnu.linkonce.r._ZTV2IY+0xc):/home/kmacy/camlidl-1.05/tests/comcomp.cpp:115: undefined reference to `__cxa_pure_virtual' comcomp.o(.gnu.linkonce.r._ZTV2IY+0x10):/home/kmacy/camlidl-1.05/tests/comcomp.cpp:122: undefined reference to `__cxa_pure_virtual' comcomp.o(.gnu.linkonce.r._ZTV2IY+0x14):/home/kmacy/camlidl-1.05/tests/comcomp.cpp:122: undefined reference to `__cxa_pure_virtual' comcomp.o(.gnu.linkonce.r._ZTV2IY+0x18):/home/kmacy/camlidl-1.05/tests/comcomp.cpp:122: undefined reference to `__cxa_pure_virtual' comcomp.o(.gnu.linkonce.r._ZTV2IY+0x1c):/home/kmacy/camlidl-1.05/tests/comcomp.cpp:106: more undefined references to `__cxa_pure_virtual' follow comcomp.o(.gnu.linkonce.t._ZN2CA7ReleaseEv+0x6b): In function `CA::Release()': /home/kmacy/camlidl-1.05/tests/comcomp.cpp:148: undefined reference to `operator delete(void*)' comcomp.o(.gnu.linkonce.r._ZTI8IUnknown+0x0): undefined reference to `vtable for __cxxabiv1::__class_type_info' comcomp.o(.gnu.linkonce.r._ZTI2IX+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info' comcomp.o(.gnu.linkonce.r._ZTI2IY+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info' comcomp.o(.gnu.linkonce.r._ZTI2CA+0x0): undefined reference to `vtable for __cxxabiv1::__vmi_class_type_info' comcomp.o(.eh_frame+0x11):/home/kmacy/camlidl-1.05/tests/comcomp.cpp:122: undefined reference to `__gxx_personality_v0' Error while building custom runtime system *** Error code 2 On 10/26/05, Christian Stork wrote: > > On Wed, Oct 26, 2005 at 01:03:45AM -0400, Igor Pechtchanski wrote: > > On Tue, 25 Oct 2005, Christian Stork wrote: > > > > I must be making a stupid mistake but I just don't see it. I put > together a > > > simple example that shows the problem. Even though the camlidl library > is > > > found its symbol "camlidl_free" is not. How can that be? Can anybody > > > reproduce the problem or is this some hickup on my system? > > > > Here's what make produces (all files attached): > > > [snip] > > > make extest > > > ocamlc -verbose -custom -cclib -lcamlidl -o extest \ > > > ex.o ex_stubs.o ex.cmo extest.cmo > > > Shouldn't this be > > > ocamlc -verbose -custom -cclib -o extest \ > > ex.o ex_stubs.o ex.cmo extest.cmo -lcamlidl > > > instead? Libraries should follow objects that refer to them... > > Thanks, that was it. > > -- > Chris Stork <> Support eff.org ! <> > http://www.ics.uci.edu/~cstork/ > OpenPGP fingerprint: B08B 602C C806 C492 D069 021E 41F3 8C8D 50F9 CA2F > > _______________________________________________ > Caml-list mailing list. Subscription management: > http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list > Archives: http://caml.inria.fr > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs >