Mario Filipe writes: > Hi Everyone > > Can someone explainwhy the following happens : > > 14:53:09# gcc -O2 -o iwconfig iwconfig.c -lm > /tmp/ccc10981: In function `float2freq': > /tmp/ccc10981(.text+0x53): undefined reference to `pow10' > /tmp/ccc10981: In function `freq2float': > /tmp/ccc10981(.text+0xdd): undefined reference to `pow10' > /tmp/ccc10981: In function `get_info': > /tmp/ccc10981(.text+0x691): undefined reference to `pow10' > /tmp/ccc10981: In function `set_info': > /tmp/ccc10981(.text+0x86f): undefined reference to `pow10' > /tmp/ccc10981(.text+0xc35): undefined reference to `pow10' > > THanks! > > Mario Filipe > [EMAIL PROTECTED] > -----> http://neptuno.sc.uevora.pt/~mjnf <----- the index of libc shows:
* pclose: Pipe to a Subprocess. * perror: Error Messages. * pipe: Creating a Pipe. * popen: Pipe to a Subprocess. * pow: Exponents and Logarithms. * printf: Formatted Output Functions. * psignal: Signal Messages. * putc: Simple Output. * putchar: Simple Output. no function pow10 and therefore the linker comlains. maybe its the funktion pow, you might want. - Function: double pow (double BASE, double POWER) This is a general exponentiation function, returning BASE raised to POWER. hope that helps, Helmut