From: "F. Schoenahl" <ceo@free.fr>
To: gsl-discuss@sources.redhat.com
Subject: Re: Core dumped with test prog.
Date: Mon, 30 Sep 2002 10:36:00 -0000 [thread overview]
Message-ID: <20020930094311.7454073e.ceo@free.fr> (raw)
In-Reply-To: <15763.21685.739777.148653@debian>
[Brian Gough <bjg@network-theory.co.uk> écrivait/wrote :]
> > I receive a core dumped when trying to execute a small binary
> > (GCC 2.95.3, Solaris Sparc 2.7) compiled with gcc -g main.c -o
> > sample -lgsl -lgslcblas
> > main.c is the example program of the documentation (bessel_sf_J0).
> > Program received signal SIGSEGV, Segmentation fault.
> > 0xff31a958 in __do_global_ctors_aux () from
> > /usr/local/lib/libgsl.so.0
> > Any help?
>
> Try explicitly linking with the static version library
> gcc -g main.c -o sample /usr/local/lib/libgsl.a \
> /usr/local/lib/libgslcblas.a
> to see if the problem is related to shared libraries on Solaris.
That's it!
I just had to add "-lm" to your line, the binary is now OK..
Keep on the good work on the library... I stay at disposition if I can help more on this problem.
Regards,
Frederic
prev parent reply other threads:[~2002-09-30 7:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-26 7:38 F. Schoenahl
2002-09-26 17:01 ` Brian Gough
2002-09-30 10:36 ` F. Schoenahl [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020930094311.7454073e.ceo@free.fr \
--to=ceo@free.fr \
--cc=gsl-discuss@sources.redhat.com \
/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).