X-Originating-IP: [208.168.190.99] From: "Sanity in Anarchy" To: djgpp AT delorie DOT com Subject: What is ANSI C++? Date: Thu, 07 Jun 2001 21:10:45 -0500 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 08 Jun 2001 02:10:46.0093 (UTC) FILETIME=[3A8507D0:01C0EFC0] Reply-To: djgpp AT delorie DOT com As requested, when I send a question, I put the file "environ.txt" in this message. Its contents are below: TMP=c:\windows\TEMP TEMP=C:\windows\TEMP PROMPT=$p$g winbootdir=C:\WINDOWS COMSPEC=C:\WINDOWS\COMMAND.COM DJGPP=z:\DJGPP\DJGPP.ENV RSXNTDJ=Z:\RSXNTDJ PATH=Z:\RSXNTDJ\BIN;Z:\DJGPP\BIN;C:\WINDOWS;C:\WINDOWS;C:\WINDOWS\COMMAND C_INCLUDE_PATH=Z:\RSXNTDJ\include\win32\anders windir=C:\WINDOWS BLASTER=A220 I5 D1 T4 I have installed DJGPP on the network drive Z:, and am using RSXNTDJ. I tried turning off the commands RSXNTDJ added to my AUTOEXEC.BAT file, but it didn't fix my problem. My problem is this: No matter what I am compiling, I always get these messages about "ANSI C++ forbids this" and "ANSI C++ forbids that" and I don't know what ANSI C++ is. I thought there was just C++ (and Visual C++, if you can afford it) and that was it. I knew also that there was C++ for Windows, both 32 bit and 16 bit and now 64 bit also. However, some basic principles, things that invoke the compile-time error about ANSI C++, are the same in all the C++ I know. I have been through various FAQ's and manuals, and they all tell me two things - compile it with the -traditional option, or run the "fixincludes" script. I tried -traditional, which is apparently not in its vocabulary, and I tried to find fixincludes, but I have no idea what it is, except that it fixes non-compatable header files. I also know that, disregarding ANSI, my code is flawless, and actually worked with previous versions of DJGPP, but now even programs that came with the books, and simple things like #include or #include cause my compiler to produce nausiating lists of errors, a lot of them with the four-letter word ANSI in it. Should I learn ANSI C++? I am just getting into C++ anyway, and got an old version of DJGPP from a friend. Are there advantages? And if not, is there a .zip I forgot to download, or is there something with the name fixincludes staring me in the face? _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com