* 2.4 Writing Guile Extensions Example - Mac Build Problem
@ 2014-11-06 7:06 Roger Mc Murtrie
2014-11-06 12:41 ` Panicz Maciej Godek
0 siblings, 1 reply; 3+ messages in thread
From: Roger Mc Murtrie @ 2014-11-06 7:06 UTC (permalink / raw
To: guile-user
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: 2.4 Writing Guile Extensions Example - Mac Build Problem
2014-11-06 7:06 2.4 Writing Guile Extensions Example - Mac Build Problem Roger Mc Murtrie
@ 2014-11-06 12:41 ` Panicz Maciej Godek
2014-11-06 22:54 ` Roger Mc Murtrie
0 siblings, 1 reply; 3+ messages in thread
From: Panicz Maciej Godek @ 2014-11-06 12:41 UTC (permalink / raw
To: Roger Mc Murtrie; +Cc: guile-user@gnu.org
[-- Attachment #1: Type: text/plain, Size: 791 bytes --]
2014-11-06 8:06 GMT+01:00 Roger Mc Murtrie <rogermc@grapevine.com.au>:
> 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
[-- Attachment #2: Type: text/html, Size: 1330 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: 2.4 Writing Guile Extensions Example - Mac Build Problem
2014-11-06 12:41 ` Panicz Maciej Godek
@ 2014-11-06 22:54 ` Roger Mc Murtrie
0 siblings, 0 replies; 3+ messages in thread
From: Roger Mc Murtrie @ 2014-11-06 22:54 UTC (permalink / raw
To: Panicz Maciej Godek; +Cc: guile-user
Thanks Panicz,
That worked.
Roger
> On 6 Nov 2014, at 11:41 pm, Panicz Maciej Godek <godek.maciek@gmail.com> wrote:
>
> 2014-11-06 8:06 GMT+01:00 Roger Mc Murtrie <rogermc@grapevine.com.au>:
> 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
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-11-06 22:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-06 7:06 2.4 Writing Guile Extensions Example - Mac Build Problem Roger Mc Murtrie
2014-11-06 12:41 ` Panicz Maciej Godek
2014-11-06 22:54 ` Roger Mc Murtrie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).