Dos 2 Linux Interpreator in C++
Note : I Compiled it in windows ... but will work in Linux , anyway by default linux have only c compiler to install C++ compiler follow below stepss.
>> goto bash shell and type ...
>> sudo apt-get install gcc-4.3 or 4.7
this will install c++ compiler if the apt-get fails to install c++ compiler then you have to install it manually .
>> goto http://mirrors-us.seosue.com/gcc/releases/gcc-4.7.0/gcc-4.7.0.tar.gz
>> downlaod gcc-4.7.0.tar.gz
>> now extract it .
>> now run below commands ..
>> ./configure
>> make
>> make install.
>> All DOne ........ enjoy
>> Now Compile it
>> g++ source.cpp -o source
>> Run it now ./source
>> use g++ for c++ and gcc for c
for centos user who have YUM just one commmand (yum -y install gcc-c++) and bingooo ....
0 comments: