Date: Thu, 25 May 1995 14:02:31 +0930 (CST) From: Lucas James <Lucas.James@ldjpc.apana.org.au> To: Lucas James <jj@ldjpc.apana.org.au> Cc: freebsd-questions@FreeBSD.org Subject: problems with libraries and c++ Message-ID: <Pine.BSF.3.91.950525135523.9542A-100000@ldjpc.apana.org.au> In-Reply-To: <199505140213.WAA00222@bonkers>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 13 May 1995, Ken Whedbee wrote: > > % g++ -I/usr/X11R6/include -o vk_generic -L/usr/X11R6/lib vk_generic.C -lvk > > -lXm -lXmu -lXt -lX11 > > and got: > > VkComponent.o: Undefined symbol `___16VkCallbackObject' referenced from text > > segment > > VkComponent.o: Undefined symbol `_callCallbacks__16VkCallbackObjectPCcPv' > > referenced from text segment > I finally found out that the problem was with ranlib choking and not > producing a random library. It complained of a wrong format. So I > threw in a -T to truncate with "ar cruTv ...." and was next able to produce > a random library with ranlib. After that, everything linked OK. So > is it true you are only able to get a random library if the object names are > truncated to 15 chars or less ? I downloaded new ld, ar, ranlib, tsort, gcc and STILL got the following: jj@ldjpc> cc -O2 -g ../lib/libObj.a ../libsc/libsc.a reporter/libreporter.a scouter.o scouter.cc:23: Undefined symbol `___9SubSystem' referenced from text segment scouter.cc:25: Undefined symbol `___6RepGen' referenced from text segment scouter.cc:28: Undefined symbol `__$_9SubSystem' referenced from text segment scouter.cc:41: Undefined symbol `__$_5dbObj' referenced from text segment scouter.cc:34: Undefined symbol `___5dbObj' referenced from text segment scouter.cc:34: Undefined symbol `_compare__C5jjObjPT0' referenced from text segment [....] but if I include all the .o files, I have no problem. (?) jj@ldjpc> cc -O2 -g ../lib/*.o ../libsc/*.o reporter/RepGen.o scouter.o /usr/local/Minerva/lib/libmsql.a jj@ldjpc> Does anyone have a clue? -- Lucas James Lucas.James@ldjpc.apana.org.au Munno Para Scout Group - Assistant Scout Leader - "Kodak" Para Rover Crew - Rover Secretary
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.950525135523.9542A-100000>