Hi Michael, thanks for the reply. Actually, you are right, my
original post was not completely correct: the frustration I mention
has to do with using the flag to compile a shared library (DLL), not a
program. In fact what I have done is create an Excel spreadsheet that
directly calls functions defined in the DLL. The -mrtd flag is needed
when interfacing with Excel b/c Excel uses STDCALL.
John