tmtmtmtm
September 17th, 2008, 07:32 PM
I use Redhat 7, there is GCC3.2.2 with it.
But I built gcc-2.7.2.3 on it due to the need of my project.
This is my test code.
#include <iostream>
using namespace std;
int main()
{
int i=0;
i++;
}
it cannot be built by g++ in gcc2723
my command:
g++ -v -Wall /home/tm/test/test.cpp
....
#include<...> search starts here:
/usr/local/gcc-2.7.2.3/include/g++
.....
/usr/include
ENd of search list.
/home/tm/test/test.cpp:1: iostream: No such file or directory.
Actually, iostream is in /usr/include/c++/3.2.2
So Question:
(1) how can I link gcc2723 with this include path? Is there some environment variable I should change?
(2)You see, there is a library for 3.2.2, but where can I get the library for 2.7.2.3?
But I built gcc-2.7.2.3 on it due to the need of my project.
This is my test code.
#include <iostream>
using namespace std;
int main()
{
int i=0;
i++;
}
it cannot be built by g++ in gcc2723
my command:
g++ -v -Wall /home/tm/test/test.cpp
....
#include<...> search starts here:
/usr/local/gcc-2.7.2.3/include/g++
.....
/usr/include
ENd of search list.
/home/tm/test/test.cpp:1: iostream: No such file or directory.
Actually, iostream is in /usr/include/c++/3.2.2
So Question:
(1) how can I link gcc2723 with this include path? Is there some environment variable I should change?
(2)You see, there is a library for 3.2.2, but where can I get the library for 2.7.2.3?