newLISP Fan Club

Forum => newLISP and the O.S. => Topic started by: harsha on September 04, 2007, 04:52:58 AM

Title: importing ".a" libraries
Post by: harsha on September 04, 2007, 04:52:58 AM
I have a precompiled library called:



cts.a



does newlisp support importing of such libraries apart from

.so, .dll etc..
Title:
Post by: Jeff on September 04, 2007, 05:03:51 AM
http://www.newlisp.org/CodePatterns.html#extending
Title:
Post by: pjot on September 06, 2007, 11:14:09 AM
Hi,



NewLisp does not support such static libraries, as the call to import a library is 'dlopen' (Unix) or 'LoadLibrary' (Win32). The call 'dlopen' literally means 'Dynamic Library open'.



As far as I know there is no possibility at all to import static libs.



Regards

Peter
Title:
Post by: Lutz on September 06, 2007, 11:53:11 AM
Perhaps you could link the .a object to a shared library this way:


cc cts.a -shared -o cts.so

or on Mac OSX


cc cts.a -bundle -o cts.dylib

and then use it



Lutz