www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

c++ - compilation error

↑ ↓ ← 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
↑ ↓ → 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