[Kde-nonlinux] error building arts on OS X
Michael Matz
kde-nonlinux@kde.org
Mon, 8 Apr 2002 14:41:16 +0200 (MET DST)
Hi,
On Sat, 30 Mar 2002 molnarc@mac.com wrote:
> c++ -shared .libs/buffer.o .libs/connection.o .libs/core.o
> .libs/dispatcher.o .libs/iomanager.o .libs/object.o
> .libs/socketconnection.o .libs/tcpconnection.o .libs/unixconnection.o
> .libs/tcpserver.o .libs/unixserver.o .libs/objectmanager.o
> .libs/factory.o .libs/idlfilereg.o .libs/ifacerepo_impl.o
> .libs/mcoputils.o .libs/startupmanager.o .libs/md5.o .libs/md5auth.o
> .libs/referenceclean.o .libs/datapacket.o .libs/asyncstream.o
> .libs/notification.o .libs/flowsystem.o .libs/extensionloader.o
> .libs/tmpglobalcomm.o .libs/mcopconfig.o .libs/connect.o
> .libs/reference.o .libs/type.o .libs/trader_impl.o
> .libs/dynamicrequest.o .libs/anyref.o .libs/loopback.o .libs/debug.o
> .libs/delayedreturn.o .libs/thread.o .libs/dynamicskeleton.o
> .libs/libmcop.lax/libltdlc.a/ltdl.o ../libltdl/.libs/libltdlc.a -ldl
> -lc -DEXTENSION_DIR=\"/opt/kde3/lib\"
> -DTRADER_DIR=\"/opt/kde3/lib/mcop\" -DNDEBUG -DNO_DEBUG -O2
> -fno-exceptions -fno-check-new -ftemplate-depth-99 -o
> .libs/libmcop.1.0.0.dylib
> /usr/bin/ld: Undefined symbols:
> _main
This is strange. I never knew that the main symbol was required for
shared libs. Maybe that's OS X only...
> ___builtin_delete
... anyway, it seems your c++ (which is g++, right?) doesn't add libstdc++
which should define those symbols. Repeat the above c++ link command
again, but add "-v -Q" to the arguments, and look how the linker is
acutally called. Somewhere there should be the libstdc++ llibrary added.
Ciao,
Michael.