Skip to content

Linking binary compiled with “-g” with library without “-g”

Will there be any issues if a binary compiled with gdb symbols (-g) is linked with a library without gdb symbols?

I am debugging this issue, and I am checking if the “-g” might be causing this.



Linking libraries compiled with debug symbols and without debug symbols should not cause Segmentation fault. Debug symbols are used by the debugger only, so should not cause a Segementation fault.

User contributions licensed under: CC BY-SA
1 People found this is helpful