I'm able to import, index, build (through the Makefile) and run/debug a project in Eclipse using the CDT. However, it seems I cannot build it using the Eclipse build environment - there are symbols not found when parsing to AST.
The problem is that it seems that the preprocessor doesn't seem to be configured with the right symbols. Eclipse's "Quick fix" only shows C-language options, not C-preprocessor options.
fprintf(fout,
_("Usage: %s [mode] [options] [file...]\n"
" %s [options] [file...]\n"
" %s [options] [file...]\n"
" %s [options] file...\n\n"), NAMECCRYPT, NAMEENCRYPT, NAMEDECRYPT, NAMECAT);
So in above I get symbol not found for NAMECCRYPT
, NAMEENCRYPT
and NAMEDECRYPT
. The annoying thing is that I can see the definition of these values in the Makefile in the root. I don't however see any option for importing these settings from the Makefile.
...
NAMECCRYPT = ccrypt
NAMEDECRYPT = ccdecrypt
NAMEENCRYPT = ccencrypt
...
Note that my C/C++ is a bit rusty as I only try to resolve an issue with CCrypt.
Setting NAMECCRYPT to "ccrypt" (I forgot the "" at the first go, just to show you rusty) as preprocessor symbol does the trick, but then I have 98 to go...
Any way to automate this?
Aucun commentaire:
Enregistrer un commentaire