Importing External code

BlitzMax Forums/BlitzMax Programming/Importing External code

BLaBZ(Posted 2013) [#1]
Hello all!

Will a .a file work on linux, macos, and win?

I'm attempting to import the following library, looks like it's has import functions for windows and linux but not for macos. How difficult would it be to get this to work for mac?

https://www.dropbox.com/s/oaivhyjg65p7xy6/newton_wrapper_pre_alpha.zip

Thanks!


UNZ(Posted 2013) [#2]
The libNewton.a contains the newton functions for linux.
The newton.dll is for windows.

linux_import.bmx imports the function pointers from the .a lib and win_import.bmx does it from the .dll file.

I doubt that the libs will work for mac but you can try.

The Newton version I used in the wrapper is
http://code.google.com/p/newton-dynamics/downloads/detail?name=newton-dynamics-2.35.rar&can=2&q=

which also has a dir ~coreLibrary_200/projets/mac so you might be able to compile a dll for mac.


BLaBZ(Posted 2013) [#3]
Thanks UNZ! I'll give it a shot