From owner-freebsd-questions Sat May 13 19:15:13 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id TAA17893 for questions-outgoing; Sat, 13 May 1995 19:15:13 -0700 Received: from bonkers (pm4_12.digital.net [198.69.104.172]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id TAA17886 for ; Sat, 13 May 1995 19:15:02 -0700 Received: (from kcw@localhost) by bonkers (8.6.9/8.6.9) id WAA00222; Sat, 13 May 1995 22:13:33 -0400 From: Ken Whedbee Message-Id: <199505140213.WAA00222@bonkers> Subject: Re: Anyone linked with Hungry ViewKit ? SOLVED ! To: freebsd-questions@FreeBSD.org Date: Sat, 13 May 1995 22:13:29 -0400 (EDT) Cc: wmbfmk@urc.tue.nl Reply-To: whedbee@ddi.digital.net X-Mailer: ELM [version 2.4 PL24 PGP2] Content-Type: text Content-Length: 1166 Sender: questions-owner@FreeBSD.org Precedence: bulk > Has anybody using FreeBSD managed to link a program using the > Hungry Programmer's version of ViewKit ? I tried compiling > the equivalent of "hello world" below but couldn't get it to link. [ ... ] > % 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 ? For more info on what ViewKit is (it's a Motif/C++ API) read the cool paper at: http://www.sgi.com/Technology/C_Motif_paper.html The Hungry ViewKit is at: http://www.cs.uidaho.edu:8000/hungry/viewkit/ -- Ken Whedbee whedbee@ddi.digital.net