Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 May 1995 16:25:35 -0400 (EDT)
From:      Ken Whedbee <kcw@bonkers>
To:        freebsd-questions@FreeBSD.org
Subject:   Anyone linked with Hungry ViewKit ?
Message-ID:  <199505062025.QAA00175@bonkers>

Next in thread | Raw E-Mail | Index | Archive | Help

Hi -

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.



/////////////////////////////////////////////////////////////
// Simplest possible ViewKit application     vk_generic.C
/////////////////////////////////////////////////////////////
#include <Vk/VkApp.h>
#include <Vk/VkWindow.h>

void main ( int argc, char **argv )
{
    VkApp     *app = new VkApp("Generic", &argc, argv);
    VkWindow  *win = new VkWindow("generic");

    win->show();  // Display the window
    app->run();   // Run the application
}



I tried compiling with the command line:

% 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 seg
ment
VkComponent.o: Undefined symbol `_callCallbacks__16VkCallbackObjectPCcPv' refere
nced from text segment


I attempted this with the Apr19-2243 Hungry ViewKit Release Of The Day.
My platform is FreeBSD2.0R plus PPP patch; gcc ver 2.6.2; X11R6;
Motif 1.2.

Thanx for any insights in getting this to compile and link !


-- 
Ken Whedbee 
whedbee@ddi.digital.net



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?199505062025.QAA00175>