Without changing the code it would be one or the other, not both.
Since you say the symbols can be found, I guess the main problem is a segmentation fault?
If so, it might be a simple pointer error.
Can you post a compilable and minimal example demonstrating the problem?
Bookmarks