Segfaults when <math.h> is used

No replies
kwokinator
User offline. Last seen 15 hours 38 min ago. Offline
Joined: 06/28/2008

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