Hi Jim,
thanks a lot for your reply, it's much appreciated!
Quote:
The reason for the ()?? thing is that gdb has no symbol information.
In order to debug meaningfully you have to have linked -g.
|
I actually did this, my lib code is compiled with -g.
Quote:
You could simply keep a static library in your app until you've worked out all the issues.
|
As long as I'm doing my own tests, yes. But the real problem is that this FPE occurs when my lib is linked to a commercial program, and that only takes shared libs (and is itself of course not compiled with -g, btw.).
Quote:
It also sounds like you need to do some parameter checking before you execute the core math operations in your library. If something is out of range, find a way to report the problem.
|
True. For now I'm just looking for a way to locate the offending line.
But from your response I take it that what I'm trying do to at least
should be possible, so I'm currently looking into other potential reasons. For instance, I might have picked up a non-debug version of my lib because I didn't update LD_LIBRARY_PATH properly...
All the best,
Stephan