Hi Mike,

I believe the reason is different platforms. man g++ says:

"-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.

"

GNU APL uses both dlopen() and backtraces, so I thought I should use when possible.

The text above suggests that g++ always accepts it and passes the export-dynamic to the linker
only if the linker supports it. The actual behavior seems to be different, though. We have also seen
compilers that "pretend" to be g++ but don't accept -rdynamic either. I am hoping that some day all
g++ compilers accept
-rdynamic in a consistent way.

/// Jürgen


On 08/15/2015 07:51 PM, Mike Duvos wrote:
Hi Jürgen,

Thanks.  After removing -rdynamic from configure, GNU APL built without errors on my laptop.

I still don't understand why g++ accepts -rdynamic everywhere except on 64-bit Cygwin.

Regards,

Mike



Reply via email to