From: Ishwar Rattan <ishwar@cps.cmich.edu>
To: 320040615403-0001@t-online.de
Cc: GNU <gcc-help@gcc.gnu.org>
Subject: Re: gcc 2.95.3 linker problems
Date: Sat, 13 Sep 2003 15:03:00 -0000 [thread overview]
Message-ID: <Pine.LNX.4.56.0309131044390.9913@pali.cps.cmich.edu> (raw)
In-Reply-To: <19yAxT-0I5NRY0@fwd06.sul.t-online.com>
Try to include math-library with -lm option at the end of command-line
gcc prog.c -lm
-ishwar
On Sat, 13 Sep 2003, Jakob Bucher wrote:
> Dear gcc-experts,
>
> I´m using the gcc 2.95.3 compiler on a use linux 8.0 system.
>
> Normal c-programs run fine. However when I use math-functions as "exp", or "log" the linker claims unresolved reference.
> The math.h header has been included and the libc-devel been loaded using Yast2.
>
> In the libc the math-functions appear not to be available.
>
> My question is where to find the library of the math-functions and how to persuade the linker to use it.
>
> Your advice will be highly appreciated.
>
> Best regards
>
> Jakob Bucher
>
>
next prev parent reply other threads:[~2003-09-13 15:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-13 14:01 Jakob Bucher
2003-09-13 14:31 ` Eljay Love-Jensen
2003-09-13 15:03 ` Ishwar Rattan [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-08-22 19:54 Jakob Bucher
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=Pine.LNX.4.56.0309131044390.9913@pali.cps.cmich.edu \
--to=ishwar@cps.cmich.edu \
--cc=320040615403-0001@t-online.de \
--cc=gcc-help@gcc.gnu.org \
/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).