This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
installing an older version of g++ on ubuntu 12.04
- From: mixpro <ssmixpro at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Wed, 6 Jun 2012 11:57:44 -0700 (PDT)
- Subject: installing an older version of g++ on ubuntu 12.04
i had a problem compiling from source , so i tried installing .deb from
http://packages.ubuntu.com/hardy-updates/g++-3.4
i installed :
cpp-3.4_3.4.6-6ubuntu5_i386.deb
gcc-3.4-base_3.4.6-6ubuntu5_i386.deb
g++-3.4_3.4.6-6ubuntu5_i386.deb
libstdc++6-dev_3.4.6-6ubuntu5_i386.deb
gcc-3.4_3.4.6-6ubuntu5_i386.deb
but when i compile
#include <stdio.h>
int main(){
printf("hisss \n");
return 0;
}
using gcc-3.4 or g++-3.4 i get :
In file included from /usr/include/stdio.h:28,
from ./hi.c:1:
/usr/include/features.h:324:26: bits/predefs.h: No such file or directory
/usr/include/features.h:357:25: sys/cdefs.h: No such file or directory
/usr/include/features.h:389:23: gnu/stubs.h: No such file or directory
In file included from /usr/include/stdio.h:34,
from ./hi.c:1:
/usr/lib/gcc/i486-linux-gnu/3.4.6/include/stddef.h:213: error: syntax error
before "typedef"
In file included from ./hi.c:1:
/usr/include/stdio.h:36:25: bits/types.h: No such file or directory
In file included from ./hi.c:1:
/usr/include/stdio.h:49: error: syntax error before "typedef"
/usr/include/stdio.h:54: error: syntax error before "__USING_NAMESPACE_STD"
/usr/include/stdio.h: In function `__USING_NAMESPACE_STD':
/usr/include/stdio.h:65: error: storage class specified for parameter
`__FILE'
In file included from /usr/include/_G_config.h:20,
from /usr/include/libio.h:32,
from /usr/include/stdio.h:75,
from ./hi.c:1:
/usr/include/wchar.h:95: error: storage class specified for parameter
`__mbstate_t'
and there's a lot more , what to do ??
thnx
--
View this message in context: http://old.nabble.com/installing-an-older-version-of-g%2B%2B-on-ubuntu-12.04-tp33971892p33971892.html
Sent from the gcc - Dev mailing list archive at Nabble.com.