*BSD News Article 43713


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.uwa.edu.au!classic.iinet.com.au!news.uoknor.edu!ns1.nodak.edu!netnews.nwnet.net!news.spu.edu!netnews1.nwnet.net!alfa02.medio.net!news.sprintlink.net!ddi2.digital.net!not-for-mail
From: whedbee@ddi.digital.net (Ken Whedbee)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Anyone linked with Hungry ViewKit in FreeBSD ?
Date: 6 May 1995 16:37:22 -0400
Organization: Florida Online
Lines: 51
Distribution: na
Message-ID: <3ogmm2$82@ddi.digital.net>
NNTP-Posting-Host: @pm2_17.digital.net


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