[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GIT version: missing linking flag

From: Ludovic Courtès
Subject: Re: GIT version: missing linking flag
Date: Fri, 21 Jan 2011 17:02:45 +0100
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (gnu/linux)


Hans Aberg <address@hidden> 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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]