gcc math functions

1997-11-05 Thread Brian Denheyer
Christopher Judd writes: > I have a PC with debian 1.3.1 installed (my first linux > installation). When I try to use the math functions (exp, pow, etc.) in > gcc I get a message like: > > /tmp/cca016941.o(.text+0x5f): undefined reference to `exp' gcc -o name -c files.c -lm

Re: gcc math functions

1997-11-04 Thread Ben Pfaff
Christopher Judd <[EMAIL PROTECTED]> writes: > I have a PC with debian 1.3.1 installed (my first linux > installation). When I try to use the math functions (exp, pow, etc.) in > gcc I get a message like: > > /tmp/cca016941.o(.text+0x5f): undefined reference to `exp' > > On other sy

Re: gcc math functions

1997-11-04 Thread Oleg Krivosheev
On Tue, 4 Nov 1997, Christopher Judd wrote: > I have a PC with debian 1.3.1 installed (my first linux > installation). When I try to use the math functions (exp, pow, etc.) in > gcc I get a message like: > > /tmp/cca016941.o(.text+0x5f): undefined reference to `exp' > > On other sy

Re: gcc math functions

1997-11-04 Thread Jaldhar H. Vyas
You also need to link with the math library libm. Try adding -lm to your gcc options. As to why the math functions aren't in libc, I don't know. It sounds like a holdover from old Unix days. -- Jaldhar H. Vyas <[EMAIL PROTECTED]> On Tue, 4 Nov 1997, Christopher Judd wrote: > I have a P

Re: gcc math functions

1997-11-04 Thread Daniel J. Mashao
On Tue, 4 Nov 1997, Christopher Judd wrote: > I have a PC with debian 1.3.1 installed (my first linux > installation). When I try to use the math functions (exp, pow, etc.) in > gcc I get a message like: > > /tmp/cca016941.o(.text+0x5f): undefined reference to `exp' > > On other sy

gcc math functions

1997-11-04 Thread Christopher Judd
I have a PC with debian 1.3.1 installed (my first linux installation). When I try to use the math functions (exp, pow, etc.) in gcc I get a message like: /tmp/cca016941.o(.text+0x5f): undefined reference to `exp' On other systems I have used the "include " was sufficient. Is t