Hi,

Hans Aberg <haber...@telia.com> writes:

> On 20 Jan 2011, at 22:01, Ludovic Courtès wrote:
>
>> Can you post the exact link command line and error message?
>
>
> $ make
> gcc parser.o lexer.o driver.o guile++.o guile.o exception.o tuple.o
> guile-config link` -lstdc++ -o guile++

This line was mangled by your mailer, I think (missing backquote,
newline inserted).

Furthermore, if you’re linking C++ code, then you should link with g++,
not gcc, and omit -lstdc++.

> Undefined symbols:
>   "_GC_register_finalizer_no_order", referenced from:
>       _make_c_exception in exception.o
>       _make_exception in exception.o
>       _make_tuple in tuple.o
> ld: symbol(s) not found

Oooh, I finally got your point about SCM_NEWSMOB.  It introduces a
direct dependency from your app on libgc, which can require -lgc,
depending on the linker.

I’ll look into it.  I think the GC_REGISTER_FINALIZER_NO_ORDER call
should be buried in a function akin to scm_i_new_smob_with_mark_proc.

Thanks,
Ludo’.

Reply via email to