Re: c lib problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05/02/2011 04:59 PM, wayne schlemitz wrote:
> I am using the gcc 4.0.2 with open SuSE 10. I am doing a c language program that uses eather the  pow() or exp() when I compile I get error message- undefined reference to 'pow'. This is a mew problem for me and would like to solve this.

You should compile that program with `-lm' so the math library gets linked.

	Marek



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux