>
> Feel free to report problems. Best,
>

This may just be my lack of familiarity with C, but I'm getting the
following error trying to run your basic example below.

>
> Juanjo
>
> $ ecl -norc

Everything inside of the repl works exactly as in your example,
generating a libfoo.so file in the current directory.  I tried to use
that library by writing the following header file
cl_object main_dll_FOO(int argc, char **argv);
cl_object foo(cl_object);
and the following C source file
#include <ecl/ecl.h>
#include "libfoo.h"

int main(int argc, char **argv){
  main_dll_FOO(argc, argv);
  foo(c_string_to_object("'(1 2 3 4)"));
  cl_shutdown();
  return 0;
}
attempting to compile this program results in the following error message

    $ gcc -o use -L. -lecl -lfoo
    /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/../../../crt1.o: In 
function `_start':
    [.text+0x20]: undefined reference to `main'
    collect2: ld returned 1 exit status

Thanks -- Eric

-- 
Eric Schulte
http://cs.unm.edu/~eschulte/
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a 
definitive record of customers, application performance, security 
threats, fraudulent activity and more. Splunk takes this data and makes 
sense of it. Business sense. IT sense. Common sense.. 
http://p.sf.net/sfu/splunk-d2d-c1
_______________________________________________
Ecls-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ecls-list

Reply via email to