Friday, September 14, 2012

cannot find ... NXConstantString

Why do I get the following error (on Linux using GNUstep), when trying to compile an Objective C program?

... error: cannot find interface declaration for ‘NXConstantString’ ..

Answer:

Use the following flag when compiling everything (.o's, main, etc):

-fconstant-string-class=NSConstantString

No comments: