Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!das-news2.harvard.edu!news2.near.net!howland.reston.ans.net!pipex!uunet!EU.net!sun4nl!esatst!wg!xep7!jcb
From: jcb@xep7 (John Belshaw)
Subject: VW 1.0a + CPOK on Solaris 2.3 does it work ?
Message-ID: <1994Nov18.123926.9488@wg.estec.esa.nl>
Sender: news@wg.estec.esa.nl
Nntp-Posting-Host: xep7.xe.estec.esa.nl
Organization: ESTEC/WG, Noordwijk, The Netherlands
X-Newsreader: TIN [version 1.2 PL1]
Date: Fri, 18 Nov 94 12:39:26 GMT
Lines: 50

I have tried to follow the examples in the cpok 
release notes and users guide for Visual Works Object Kit
for a very simple c libray call to add two long integers.

add.h
long add(long,long);

add.c
long
add(long x, long y)
{
return (x+y);
}

cc -c -Xa -K pic add.c
ld -o add.so -G add.o

The Class compiled ok and wrote a nice looking method from the
add.h file 

It all seemed to go OK up until the point when you 
make an external call and VW tries to load the dynamic 
library add.so (in the startup directory).

like this ->

MyInterface add: 1 with: 2 

Then I get the message -

Unhandled exception: External: Unable to load library named add.so
MyInterface(ExternalInterface)>>externalAccessFailed
etc

I am pretty sure add.so is compiled and linked correctly
so am I doing something stupid ? help gratefully received.

John
--
        _________________________________________________________
       |                                                         |
       | John Belshaw ESA-ESTEC XEP   Wave Interaction and       |
       | jcb@xe.estec.esa.nl          Propagation Section        |
       | +31 1719 84427               fax +31 1719 84999         |
     / ) NL-2200 AG Noordwijk, Netherlands                       ( \
   _( (|__________________________________________________________) ) />
  (((\ \)  /,)                                             / )  / //))/
  (\\\\ \_/ /                                              \ \_/ /////
   \       /                                                \       /
    \    _/                                                  \_    /
