C linking fails

Ryan Schmidt ryandesign at macports.org
Thu Jul 30 06:22:20 PDT 2015


On Jul 29, 2015, at 3:01 PM, James Rome wrote:

> I changed all these things, and I still get no symbols
> ld: symbol(s) not found for inferred architecture x86_64
> How do I generate the symbol table so that it can link in debug mode?

As far as I know, to compile something with debugging information, you use the "-g" flag (e.g. by putting it in CFLAGS). You can add to that "-O0" (dash, letter O, number zero) to disable optimizations, which can make debugging easier.



More information about the macports-users mailing list