Facing error while running "g++ 3.4.4" code in "g++ 4.3.3"
I have to compile some cpp codes which were written in "g++ 3.4.4". But now I am using Ubuntu 9.04 (which uses g++ 4.3.3) and whenever I tried to compile those code I found some errors like "... : error: expected `)' before ‘*’ token".
I was not able to find out any problem in that code. Can anyone please suggest me what to do?
By the way, those codes are implementation of some Broadcast Algorithms for ns-2.29 distribution that I have analyze.
I remember that ns2 has some problems with gcc4. You could give a look at the list of changes to see whether there's some problem in your code that arose with gcc4 (http://gcc.gnu.org/gcc-4.3/changes.html).
You should also remember to re-run the "configure" scripts when changing the compiler.
If everything fails, you can install a copy of gcc3 and use that one, using the sources downloadable from gcc's site, is not that difficult to rebuild gcc if you're used to build ns.
|All times are GMT -5. The time now is 06:37 AM.|