Linking a Plugin with static libraries

Tim Rowledge tim at sumeru.stanford.edu
Thu Jun 5 03:04:58 UTC 2003


"Eddie Cottongim" <cottonsqueak at earthlink.net> wrote:

> [ANN] BugFixArchiveViewer 1.1 on SqueakMapI have a plugin with primitive
> methods. They call functions in external libraries (.lib). I have the
> external libraries.
> 
> How do I get these linked properly? Do I have to alter the interpreter
> makefile?
Almost certainly you'll have to do something with a makefile - that
depends very much on the platform though so you'll have to be more
specific. 

> Is there a directive that will get VMMaker to help me? I attempted
> to build the plugin alone and couldn't figure it out (lots of undefined
> symbols). I have made approximately zero progress on this.
It's unlikely VMMaker can help very much  with linking problems. I'd
generate the plugin external, at least initially, since that separates
out the plugin from the rest of the code. Then you need to do Stuff to
the makefile  so that the generated plugin code is
a) compiled the right way
b) linked with the right libraries

tim
--
Tim Rowledge, tim at sumeru.stanford.edu, http://sumeru.stanford.edu/tim
Useful Latin Phrases:- Tam exanimis quam tunica nehru fio. = I am as
dead as the nehru jacket.



More information about the Squeak-dev mailing list