Dienstag, 11. März 2008

SDL_ClearError WTF?

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1210607424 (LWP 22207)]
0x082917ec in SDL_ClearError ()
(gdb) quit


If using Derelict with rebuild ever gives you spurious errors
in the SDL init code ... here's the solution.

BE SURE TO GET RID OF -rdynamic IN REBUILD'S CONFIG FILE.

From the man page:
-rdynamic
Pass the flag -export-dynamic to the ELF linker, on targets that support it. This instructs the linker to add all symbols, not only used ones, to the dynamic symbol table. This option is needed for some uses of dlopen or to allow obtaining backtraces from within a program.


Seems like a classic trivial but hard to debug problem :)

Also btw. I have set up an svn repository for the project.

Keine Kommentare: