On Fri, Jan 15, 2010 at 10:19 PM, Andy Hefner <ahefner@gmail.com> wrote:
On Sat, Jan 16, 2010 at 4:07 AM, Juan Jose Garcia-Ripoll
> 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

That does work, somewhat to my surprise.

Why would it be surprising? A compiled program is a set of binary files, one binary file per source. Each binary file does the same things that the source did: defining packages, functions, classes, all in the same order. Hence if you add a source that only does require CMP, then the following binaries will have, when executed,  all the packages, classes and functions defined by the compiler.


Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)