Linking C/C++ and Fortran code, I get a /usr/bin/ld: Undefined symbols error referencing _printf$LDBLStub or similar. What’s wrong?
If you see error messages like this
/usr/bin/ld: Undefined symbols:
_printf$LDBLStub
_sprintf$LDBLStub
just add
to your linker command.