www.digitalmars.com         C & C++   DMDScript  

c++ - compilation error

reply jlhortal <jlhortal_member pathlink.com> writes:
sc TEST2.cpp -cpp -r -mn -C -WA -S -3 -a8 -c -gf -D_STLP_NEW_PLATFORM_SDK
-D_CONSOLE=1 -IC:\DigitalMars\stlport\stlport -oTEST2.obj 

Error: C:\PROYECTOS\DM\TEST2.CPP(3): '=', ';' or ',' expected
Lines Processed: 2  Errors: 1  Warnings: 0
Build failed

int main()
{
bool __in = false;
return 0;
}

( same error with __out instead __in )

The real problem is that num_get.c and _sstream.c are full of __in and __out
( I'm trying to compile a large program. If I change the __in and __out with
other names everything is fine )
Mar 20 2006
parent pinzo correo.nu writes:
 The real problem is that num_get.c and _sstream.c are full of __in and=
=
 __out
Every identificator that begins with '__' (double underscore) is reserve= d = for internal compiler use, so you shouldn't be using those. The same is for underscore followed wit= h = an uppercase. If you really want to use those names (again, you shouldn't) you'll = probably need some preprocessor trick, maybe '#undef __in'. Regards. Rodrigo.
Mar 22 2006