[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 2.4 Writing Guile Extensions Example - Mac Build Problem
From: |
Roger Mc Murtrie |
Subject: |
Re: 2.4 Writing Guile Extensions Example - Mac Build Problem |
Date: |
Fri, 7 Nov 2014 09:54:26 +1100 |
Thanks Panicz,
That worked.
Roger
> On 6 Nov 2014, at 11:41 pm, Panicz Maciej Godek <address@hidden> wrote:
>
> 2014-11-06 8:06 GMT+01:00 Roger Mc Murtrie <address@hidden>:
> I have just started learning Guile on my Mac OS X 10.10 (Yosemite) but my
> attempt to build the Writing Guile Extensions example failed with:
>
> gcc `pkg-config --cflags guile-2.0` -shared -o libguile-bessel.so -fPIC
> bessel.c
> Undefined symbols for architecture x86_64:
> "_scm_c_define_gsubr", referenced from:
> _init_bessel in bessel-6d66cf.o
> "_scm_from_double", referenced from:
> _j0_wrapper in bessel-6d66cf.o
> "_scm_to_double", referenced from:
> _j0_wrapper in bessel-6d66cf.o
> ld: symbol(s) not found for architecture x86_64
>
> The simple-guile example built and worked OK.
>
> Any advice appreciated.
>
> Try adding `pkg-config --libs guile-2.0` to the command line.
>
> HTH
> M
>