On 07 May 2006 02:48, Dan Kegel wrote: >On 05 May 2006 11:50, Ginil Gharat wrote: >> >> We recently started porting a C++ project from gcc-3.2.1 to gcc-4.0.1. We >> initially ran into several problems. The code that compiled easily with >> gcc-3.2.1 would not compile with gcc-4.0.1. >> >> Later we found that code compiled till gcc-3.3.6 version, but since the >> gcc-3.4.0 version the code wouldn't compile. The major errors are with >> template, name lookup but there are also certain errors with finding >> definitions from header files which are included and are in include path. >> >> Can you please point some links where these issues are discussed and any >> documents where these issues are explained and we can easily resolve these >> compilation errors.
The precise link to answer this VVVFAQ would be http://gcc.gnu.org/gcc-3.4/changes.html#cplusplus which is as close to an official summary of the differences in the C++ parser between earlier and later gccs as you'll get. > I maintain a collection of links about this at > http://kegel.com/gcc/gcc4.html > including an excellent pair of documents from someone who > built all of Debian with gcc-4.1. Dan, I know you've alredy implicitly listed that link by listing the page that it points to, but I reckon this one comes up /so/ often it wouldn't hurt to add an explicit link with some anchor text along the lines of "Major C++ coding incompatibilities between gcc < 3.4.0 and gcc >= 3.4.0" or similar; people don't seem to think of searching the changes lists by default, or perhaps by the time they've looked at the 3.0 changes page and the 3.1 changes page and the 3.2 changes page and the 3.3 changes page they might conclude that none of the changes pages deal with such high-level topics and tend to quit too soon. For whatever reason, anyway, people don't seem to find it; it couldn't hurt to make it explicit. cheers, DaveK -- Can't think of a witty .sigline today....