Re: error building arts on OS X

Michael Matz <[email protected]>
Newsgroups gmane.comp.kde.non-linux
Message-ID <Pine.GSO.4.33.0204081437500.18092-100000@platon>
Hi,

On Sat, 30 Mar 2002 [email protected] 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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.