- Sep 10, 2005
- 7,458
- 1
- 76
How do you use the pow function with a variable? I made a program that will convert binary values into decimal values and used something like pow(10, n). But when I transfer the program onto a school computer, the compiler won't accept it. I get this error:
Undefined first referenced
symbol in file
pow /var/tmp//ccU8hSXp.o
ld: fatal: Symbol referencing errors. No output written to a.out
I have included math.h and pow(10, n) works on my laptop. What's wrong??
Undefined first referenced
symbol in file
pow /var/tmp//ccU8hSXp.o
ld: fatal: Symbol referencing errors. No output written to a.out
I have included math.h and pow(10, n) works on my laptop. What's wrong??