unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Panicz Maciej Godek <godek.maciek@gmail.com>
To: Roger Mc Murtrie <rogermc@grapevine.com.au>
Cc: "guile-user@gnu.org" <guile-user@gnu.org>
Subject: Re: 2.4 Writing Guile Extensions Example - Mac Build Problem
Date: Thu, 6 Nov 2014 13:41:12 +0100	[thread overview]
Message-ID: <CAMFYt2a3ZXg5ngSWWSZ_DgU21BkQZ8cRzWK2wutL8dAx_4UBgA@mail.gmail.com> (raw)
In-Reply-To: <69C9C82F-EF9E-4D45-90AA-F2D521660167@grapevine.com.au>

[-- 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 --]

  reply	other threads:[~2014-11-06 12:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2014-11-06 22:54   ` Roger Mc Murtrie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAMFYt2a3ZXg5ngSWWSZ_DgU21BkQZ8cRzWK2wutL8dAx_4UBgA@mail.gmail.com \
    --to=godek.maciek@gmail.com \
    --cc=guile-user@gnu.org \
    --cc=rogermc@grapevine.com.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).