[squeak-dev] Linking a plugin with a library

Igor Stasenko siguctua at gmail.com
Mon Apr 27 10:23:37 UTC 2009


2009/4/27 John Daniels <jd at syntropy.co.uk>:
> Hi all,
>
> I'd appreciate some help with building a plugin for Windows. The
> plugin generates and compiles fine; the problem is at the link stage.
> I don't know how to configure the make so that it links the plugin
> with a library that it requires. I've searched the web but I haven't
> been able to find anything that covers this specifically. Any pointers
> you can give me would be welcomed.
>

You need to add an option to linker in your plugin makefile
like:
-lmyimportlibrary

and to generate import library, please read this page:
http://oldwiki.mingw.org/index.php/CreateImportLibraries

i hope it helps.

> Thanks,
>
> --John
>
> John Daniels
>
>
>



-- 
Best regards,
Igor Stasenko AKA sig.



More information about the Squeak-dev mailing list