Question on gcc compiler commands
Posted
by user271916
on Stack Overflow
See other posts from Stack Overflow
or by user271916
Published on 2010-04-25T18:06:20Z
Indexed on
2010/04/25
18:13 UTC
Read the original article
Hit count: 196
c
I had to compile a small little C program using the following;
gcc sine.c -o sine -lm
I needed the "-lm" because the program included the math.h.
In looking this up under compiler commands man shows it a either -llibrary or -l library.
I could not find any information on what other libraries. Apparently -lm is needed for math.h what other library commands might be needed.
Thanks
© Stack Overflow or respective owner