Hi,
I'm using qt with visual studio 2005 and I'm wondering if I can define an ANSI flag in microsoft compiler (because I need to write ansi compliant code). Do you know if this is possible with this compiler ??
Hi,
I'm using qt with visual studio 2005 and I'm wondering if I can define an ANSI flag in microsoft compiler (because I need to write ansi compliant code). Do you know if this is possible with this compiler ??
ANSI as in "ANSI C" or ANSI as in "C++ compliant with this or that standard of C++"?
I think MSVC 2005 is compliant with the latest standard of C++. Versions prior to 2003 were not.
ANSI as in "ANSI C".
Did you encounter any specific incompatibilities with MSVC?
I haven't encountered any problems, while developing. The problem is, that I want to tell the compiler to warn me (or at the apropriate time give me an error) when I'm doing something which isn't accordingly to the ANSI standard.
I used to compile code with gcc under linux with -ANSI flag (which did the trick for me).
So develop with MinGW. I'm sure the -ansi switch works there the same way as in Linux. Then you can do the final compilation with msvc if you need it.
Ok. I guess there is no other way to achieve the same thing with microsoft compiler. Tnx for your help.
I didn't say there is no way, I just wasn't able to find it yesterday.
Bookmarks