Lisp HUG Maillist Archive

Compiling a C module in LispWorks

Hello,

LispWorks has the ability to call the C compiler to produce a shared library and load the resulting module.

On Mac OS X, when I try to compile an Objective-C file from the Editor, compilation succeeds but linking fails because the Foundation framework is not specified in the linking options.

How can I instruct the command line to add the required option to link again the Foundation framework from within the LispWorks Editor?
(-framework Foundation).


Best Regards,
Camille


_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-hug@lispworks.com
http://www.lispworks.com/support/lisp-hug.html


Re: Compiling a C module in LispWorks

Camille Troillard <camille@osculator.net> writes:

> Hello,
>
> LispWorks has the ability to call the C compiler to produce a shared library and load the resulting module.
>
> On Mac OS X, when I try to compile an Objective-C file from the Editor, compilation succeeds but linking fails because the Foundation framework is not specified in the linking options.
>
> How can I instruct the command line to add the required option to link again the Foundation framework from within the LispWorks Editor?
> (-framework Foundation).
>

There's a SCM:*C-DEFAULT-OPTIONS* variable. I'm not using Mac OS X so I
can't test whether it will also work for Objective C.

_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-hug@lispworks.com
http://www.lispworks.com/support/lisp-hug.html


Updated at: 2020-12-10 08:36 UTC