You are here:

C++/gcc 2.95 & gcc 3.x


why is it that sometimes something compiled in gcc 2.95 will not work in a machine that has gcc 3.x?

and why is it that sometimes it works in both machines?

oh, not to mention some codes that are compilable in gcc 2.95 will not compile in 3.x

Hello James, thank you for the question.

We just had this issue at my place of employment a couple of weeks ago, porting all of our gcc3.x stuff to gcc4.0. The reason behind it is due to what the developers change in each version. In gcc4.0, there are a couple of command line options that aren't available in gcc3, which caused numerous integration problems when we integrated with some external developers. Why code intermittently works sometimes is unknown. This seems a more suited question to the gcc developers.

I hope this information was helpful.

- Eddie


All Answers

Answers by Expert:

Ask Experts




I can answer questions about the C++ language, object oriented design and architecture. I am knowledgable in a lot of the math that goes into programming, and am certified by I also know a good deal about graphics via OpenGL, and GUIs.


I have completed numerous games and demos created with the C++ programming language. Currently employed as a software engineer in the modeling and simulation field. I have about 7 years experience.

©2017 All rights reserved.