Forum Discussion
Altera_Forum
Honored Contributor
13 years agoPredefined Macro Issues (__VERSION__ and __NIOS2__)
I rebuilt a NIOS2 SBT project (12.1sp1) and started getting some errors I didn't have previously. The first error was "symbol __version__ could not be resolved". The other error was for a ...
Altera_Forum
Honored Contributor
12 years agoThis is a strange error, as the file is correctly compiled with __VERSION__ = "4.1.2" even though it is marked as an error in the editor.
So it is the background code analysis program that marks it as an error, not the compiler. A way to disable just this symbol resolved error is to add the following code. # ifndef __VERSION__ # define __VERSION__ "x.x.x" # endif __VERSION__ will still be 4.1.2