View Full Version : Seg fault (missing library?)
June 23rd, 2010, 03:37 PM
Hey guys I'm getting a segmentation fault when I run some code that was re-factored from windows, it uses some advanced math (trig functions to be exact) so I have to compile with the -lm flag. I have a feeling that I am missing a runtime library or something along those lines. Any ideas?
June 24th, 2010, 02:08 PM
What language are you using?
In C, you need to include the 'math.h' library and then compile with the -lm option.
July 26th, 2010, 01:41 PM
use ldd to find what libraries are missing.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.