Making dynamic link library on Linux etc.

BlitzMax Forums/BlitzMax Beginners Area/Making dynamic link library on Linux etc.

outsider(Posted 2009) [#1]
Hi,
I'm reading some posts about making dynamic link library, but is it possible to make it on Linux or OSX?
In example:
Function DoThis:int(Value:Long) "Win32"
GCEnter()
Return Value*2
End Function

I see that there is "Win32", is it dynamic link library exclusive for Windows?

Thanks
outsider


Otus(Posted 2009) [#2]
The "Win32" part refers to a calling convention that is used by the Win32 API. You usually only need it when declaring external functions related to that API. In any case you should be able to create shared object files (.so) - the Unix equivalent of DLLs - similarly as on Windows.