C/C++

Segfaults when <math.h> is used

Submitted by kwokinator on Thu, 01/15/2009 - 15:50

 

A common issue with C is that if you use math.h, there might be trouble compiling with the gcc compilers. You MUST use the -lm compilation option in order to get around this problem.

If you don't, then you will get a segfault error.

So, that means you need to do something like this:

gcc -lm -o verifiers verifiers.c

Syndicate content