[Ecls-list] MT linking to C app fails

Dean O'Connor dean.oconnor at ite.com.au
Tue Oct 11 03:22:14 UTC 2005


Hello

With today's CVS copy, I can compile and get all the Multithreaded exe 
and libs, but when I link it with my C++ app I now get:

error LNK2001: unresolved external symbol __imp__cl_env

Am initialsing ECL wrongly ??? I didn't change anything from my single 
threaded approach yet !!
I see in the elc-threads.def there is no cl_env ... only cl_process_env.

So I am probably being silly but I can't find the doco on what I should 
use for MT !!!!

ie. i still do this kinda thing ...

    cl_boot(argc, argv);
    cl_object form_base = c_string_to_object("(load \"base\")");
    cl_object ret_obj1 = cl_safe_eval(form_base, Cnil, OBJNULL);
    funcall(1, top_level);

Cheers
Dean






More information about the ecl-devel mailing list