[Ecls-list] Cannot set compiler flags for compile-file
Juan Jose Garcia-Ripoll
juanjose.garciaripoll at googlemail.com
Fri Jan 15 21:07:43 UTC 2010
On Fri, Jan 15, 2010 at 10:03 PM, Andy Hefner <ahefner at gmail.com> wrote:
> On Sat, Jan 16, 2010 at 3:26 AM, Juan Jose Garcia-Ripoll
> <juanjose.garciaripoll at googlemail.com> wrote:
>
> > I do not understand why you need the read-from-string if you use (REQUIRE
> > 'CMP) at your ~/.ecl or ~/.eclrc file before changing the settings.
>
> I'll try to explain, in case it's ever useful. First, the problem only
> occurs in compiled executables, where code has been compiled in that
> refers to the C package, such that you've had to (require 'cmp) at
> runtime to load the compiler. The compiled code refers to
> C::*CC-FLAGS*, but before you do (require 'cmp), the C package doesn't
> exist at all.
Why don't you add a first file to your compiled program that _only_ contains
(require 'cmp) ? The C package would then be available for the subsequent
compiled files and you will be able to use symbols by their names.
Juanjo
--
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://juanjose.garciaripoll.googlepages.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20100115/43b27d0e/attachment.html>
More information about the ecl-devel
mailing list