Re: release build failed!!!
- From: Joseph M. Newcomer <newcomer@xxxxxxxxxxxx>
- Date: Wed, 05 Sep 2007 09:47:37 -0400
Well, it is very difficult to diagnose this problem, since you have provided no useful
information. You say the error messages all point to a single line, yet I see two
messages referencing line 48 and one message referencing line 69.
It looks like there is a #define of a constant value using one of those IDs. The easiest
way to find this is to change the properties of the compilation to have the /P switch
(that's case-sensitive, and must be /P, not /p), recompile that file, and then look at the
..i file that comes out. You'll probably see something like
static enum Value { BASE, ALIGNMENT, 3, SIDE
which would mean in this case that someone has done
#define ORIENTATION 3
since I don't know what symbols you might have defined, I can't tell which one would do
this. But then you know which one you need to rename. I suspect it is FOLD from the
subsequent error.
I prefer to do
class Whatever {
public:
enum Value { Base, Alignment, Orientation, Side, Type, Scaling, Barcode, Class,
Access, Overflow, Style, Case, Color, Horizontal, Vertical, FillColor, FillStyle, Fold,
Source} Options;
};
Then I would use
Whatever::Options option;
option = Whatever::Style;
which keeps the names in a separate namespace, and doesn't generate conflicts with other
names.
joe
On Mon, 3 Sep 2007 04:18:00 -0700, karim <karim@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
hi,Joseph M. Newcomer [MVP]
i have problem with my release build(my debug build compiled successfully).
All errors are pointing to a single statement, which is below.
static enum
Value{BASE,ALIGNMENT,ORIENTATION,SIDE,TYPE,SCALING,BARCODE,CLASS,ACCESS,OVERFLOW, STYLE,CASE,COLOR,HORIZONTAL,VERTICAL,FILLCOLOR, FILLSTYLE, FOLD, SOURCE};
The kind of errors i am getting are
Error 1 error C2143: syntax error : missing '}' before
'constant' c:\migration sandbox\simptr\include\ValueTable.h 48
Error 3 error C2059: syntax error : 'constant' c:\migration
sandbox\simptr\include\ValueTable.h 48
Error 26 error C2065: 'FOLD' : undeclared identifier c:\Migration
SandBox\SimPTR\source\XFSPrinterMediaParser.cpp 69
There are 113 errors and all are of the above kind and pointing to same
statement.
Can anyone help me out.
thanks in anticipation.
karimulla.
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.
- Prev by Date: Re: how to set ownerdraw to a pop-up menu
- Next by Date: Write to an Edit Control with the << operator
- Previous by thread: Re: release build failed!!!
- Next by thread: Re: release build failed!!!
- Index(es):
Relevant Pages
|