Ansi C or C++?

Developer's Forum, for discussion of bugs, code, and other developmental aspects of OpenGLide.

Ansi C or C++?

Postby Zirias » 2010-5-10 @ 08:21

I just wanted to do some little modifications and was quite surprised to find only plain old C code in the .cpp files. Is there a particular reason for using a C++ compiler (along with libstdc++ et al)?

edit: I just discovered openglide INDEED compiles fine using gcc (and NOT g++), so there's definitely no c++ code anywhere. This helps me build a i386 version on my amd64 host right now, because my debian environment doesn't provide ia32 libstdc++ import library ATM.

So, why is all the code in .cpp files? Is this for building in microsoft visual studio, that doesn't provide a plain C compiler but only C++? If so, wouldn't setting CXX="gcc" on any GNU environment by default be a good idea?
Posts: 39
Joined: 2010-5-08 @ 07:22

Return to OpenGLide Development

Who is online

Users browsing this forum: No registered users and 1 guest