Game Development Community

VC++ to ANSI C++

by Axel Cushing · in Technical Issues · 04/11/2003 (9:54 am) · 2 replies

All right, I'm not terribly interested in using M$ VC++ in any way shape or form. Yet a lot of the source code floating around out there was made on VC++. Attempts to compile the source code on compilers like GCC or DevC++ have failed miserably, even using MingW. Any thoughts on how to get code written in VC++ to compile on other compilers?

About the author

Axel Cushing currently writes for the game site The Armchair Empire, when he's not working on game designs, novels, or screenplays.


#1
04/11/2003 (10:29 am)
Theoretically, C++ should compile on any compiler. It is an ANSI standard.

Typically, the major differences between compilers are in the runtime, the pragma, and occasionally in obscure semantics. Torque demonstrates pretty effectively that you don't have to jump through major hoops to support multiple compilers.

Can you give examples? I haven't run into a lot of source code that couldn't be persuaded to compile on other compilers.
#2
04/11/2003 (10:52 am)
I believe Nebula requires VC++, and I seem to remember the Quake II source requiring VC++ but it's been a while since I've looked at that. Specific coding examples, I cannot immediately give, since I foolishly have no modem on my development box. :P