Article View: att.lang.c++
Article #276Re: Strange error... need help!
From: James Youngman
Date: Mon, 17 Mar 1997 00:00
Date: Mon, 17 Mar 1997 00:00
34 lines
1696 bytes
1696 bytes
In article <01bc2fcf$d9cc1e60$5ecf60cf@pboucher.videotron.ca>,
dziablo@lords.com says...
>
>Hi, I've tried to compile the SIN and COS's exemple from my BC++ 3.0 Help
>file because I was unable to compile my own program with SIN function.
>Surprise, the exemple dosn't work either... here what it tells me:
>
>#include <stdio.h>
>#include <math.h>
>
>int main(void)
I'd just like to congratulate you on getting this bit right. It seems a while
since that happened :-)
>{
> double result, x = 0.5;
>
> result = sin(x);
> printf("The sin() of %lf is %lf\n", x, result);
> return 0;
>}
>
>Linking NONAME00.EXE:
>Linker Error: Undefined symbol FIWRQQ in module NONAME00.CPP
You just need to link against the math library. There will be sone dialog box
checkbox that needs to be checked.
--
James Youngman VG Gas Analysis Systems The trouble with the rat-race
Before sending advertising material, read is, even if you win, you're
http://www.law.cornell.edu/uscode/47/227.html still a rat.
Technical Details
Message-ID:
<5gj5mh$rpm$1@halon.vggas.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<01bc2fcf$d9cc1e60$5ecf60cf@pboucher.videotron.ca>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109fba,602ca3224b794341 X-Google-Attributes: gid109fba,public X-Google-Thread: 108b44,602ca3224b794341 X-Google-Attributes: gid108b44,public X-Google-Thread: 10d4ba,602ca3224b794341 X-Google-Attributes: gid10d4ba,public From: JYoungman@vggas.com (James Youngman) Subject: Re: Strange error... need help! Date: 1997/03/17 Message-ID: <5gj5mh$rpm$1@halon.vggas.com> X-Deja-AN: 226147850 References: <01bc2fcf$d9cc1e60$5ecf60cf@pboucher.videotron.ca> Organization: VG Gas Analysis Systems Newsgroups: att.lang.c++,comp.lang.c++,comp.sys.lang.c++