gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Beginners > Compilers C and C++

#8912 - David Zuchora - Wed Jul 23, 2003 7:47 pm

Will A C++ Compiler Read A Program Written In C Programming?
Will I Have To Get A C Compiler? Thanks!
_________________
...End Transmission

#8913 - tepples - Wed Jul 23, 2003 7:53 pm

Though C++ is nearly a superset of C (i.e. most valid C is valid C++), almost all C++ compilers can be set to a mode that compiles C perfectly. For example, DevKit Advance is a GCC distribution, and GCC is a C++ compiler. Trigger GCC's C mode by ending the source code filename in .c (lowercase; .C and .cpp trigger C++ mode).
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.


Last edited by tepples on Wed Jul 23, 2003 9:45 pm; edited 1 time in total

#8916 - David Zuchora - Wed Jul 23, 2003 8:41 pm

Thanks! I tried to install my C++ Compiler but the book tells me I need to get to the DOS prompt screen. I can't get it to work. When I searched for DOS on the start menu it gave me a .txt file about DOS Box and how Windows 2000 and XP don't support it. What should I do? Thanks again!
_________________
...End Transmission

#8918 - niltsair - Wed Jul 23, 2003 8:58 pm

If you only need the Dos prompt screen :
* Menu "Start --> Run"
* Type in "Cmd"

If your compiler need to run in Dos mode, then you won't be able to use it with Win2000, Xp.

Why don't you use the C++ compiler that come along DevKitAdv?

#8923 - David Zuchora - Wed Jul 23, 2003 10:10 pm

I can't download it! I made a post about this earlier. Thanks Though!
_________________
...End Transmission