Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Linux Links | Bling | About BLU

BLU Discuss list archive


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

gcc math.h won't include



> 
> You're missing the linker flag to add the math library:
> 
> gcc calcint1.c -lm
> 
> You can tell this is the problem because the keywords "undefined reference"
> means that the code for the pow function is missing.
> 
> And the math functions are in the library called 'm'.  Of course you can't
> seem to tell that from the manual pages, but now you know =)  
> A good book on C should point this out, though.
> 
> 
> . . . Sean.
> -------
> Ex ignorantia ad sapientiam; e luce ad tenebras.
> Out of ignorance into knowledge; from the light into the darkness.
> 
Right you are!  Thanks a million.




BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org