[Ecls-list] c:*user-ld-flags* surrounds everything with single quote

Juan Jose Garcia-Ripoll juanjose.garciaripoll at googlemail.com
Sun Mar 28 09:21:53 UTC 2010


On Sun, Mar 28, 2010 at 8:26 AM, Seth Burleigh <seth at tewebs.com> wrote:

> I have this in my c:*user-ld-flags*
> ("-L\"/usr/local/cintools/\"" "-lcin")
>

Remove the \"...\" from the first arguments


> Now, when i compile, it surrounds everything with single quotes, giving
> something like this:
>
> gcc .... '-L\"/usr.......\"' '-lcin'
>

The single quotes are there for two reasons: to allow arguments that contain
spaces in the strings, such as pathnames (c:\Documents and Settings\...),
and to prepare the migration towards EXT:RUN-PROGRAM which requires
individual arguments in a list.


> Now, ive tested this on regular c code, and the compiler doesn't care if
> any link statements are in single quotes, but the -L statement wont work
> with the single quotes surrounding it. If i take them out, the compiler
> finds the library.


The double quotes inside the single quotes mess everything up: the compiler
thinks they form part of the -L option.

Juanjo

-- 
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://tream.dreamhosters.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20100328/f148495b/attachment.html>


More information about the ecl-devel mailing list