[Ecls-list] sttandalone linking problem
Greg Pfeil
sellout42 at mac.com
Fri Oct 13 15:44:35 UTC 2006
On 13 Oct 2006, at 8:32, Juan Jose Garcia-Ripoll wrote:
> 2006/10/13, Rick Taube <taube at uiuc.edu>:
>> im trying to build a standalone app in ecl. everything compiles fine
>> with :system-p t but i get an error about multiple definitions of a
>> symbol _init_CM when linking:
>
> Do you have both a file cm.asd and cm.lisp or cm.lsp laying around?
> Or do you call your module CM? In both cases, either when two files
> have a similar name, or when the final module has the same name as one
> of the compiled file, you will get conflicts.
>
> Set the value of *init-function-prefix* for instance to "CM" to prefix
> all the compiled files with "CM_" and thus avoid conflicts.
>
> I know it is a hack, but I do not know a better solution.
I've run into this when using build-op with ASDF. In that case, you
can't really set *init-function-prefix* on a case-by-case basis. I
have a patch that has allowed me to work around this. I'll see if I
can package it up (and if it's actually worthwhile) when I get to
work on Monday.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20061013/40868cc7/attachment.sig>
More information about the ecl-devel
mailing list