PDA

View Full Version : gcc-4 retro-compatibilities



jobherzt
November 29th, 2005, 10:47 PM
I know it's a recurrent problem, but I didn't find the solution. I try to make a source and a binary package for Ubuntu.
but the compilation of the programm, as with fast every source I tried to compile with gcc-4, don(t work beacause of an "lvalue assignement error". But with gcc-3.3, the compilation work fine, altough he warn that "use bla bla lvalue is deprecated". so it's logical, gcc-3 warned, and gcc-4 refuse. but for respecting Ubuntu policy I must use gcc-4. so I want to know if it exist an issue for that, an option to make gcc-4 compatible with the 3.3 ?

excuse me fr my english, I'm french :D

thank you !

thumper
November 30th, 2005, 10:40 AM
I'd suggest fixing the code.

jobherzt
November 30th, 2005, 11:16 AM
of course, in this case it's what I'm going to do. I found the problem in the source. But the programm is relativ small, sou it's not so difficult, but it will not alwas be so, so I wanted to know if there is a trick to fix it more fastly.
thanks

thumper
November 30th, 2005, 11:43 AM
I don't believe there are any "magic" porting tools. This is one of the problems when moving to a more standards compliant compiler.

Just be thankful you are not moving from VC6 to VC7.1 or gcc as there is more pain there.

jobherzt
November 30th, 2005, 11:45 AM
lol :p :p :p