This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: math.h


> when i try to use any function from math.h pow, sin, cos, etc, i get the
> following message:  /tmp/cc5Ig4Rz.o: In function `main':
> /tmp/cc5Ig4Rz.o(.text+0x15): undefined reference to `sinl'

You need to link with -lm.

Martin

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]