Hi All,
This is the 1st time I am posting a question, in the hope to get the answer.
I have tried a small and simple CPP program and it is not compliling.
$ cat istcppprogram.cpp
#include <iostream>
using namespace std;
int main()
{
cout << " This is the 1st CPP program" << "\n";
return 0;
}[/COLOR]$
While compiling in this way
$ gcc istcppprogram.cpp
It show me the below error
Could not load program /bin/ps:
Insufficient permission to create loader domain /usr/local/bin/gcc
System error: Permission denied
ld: 0711-317 ERROR: Undefined symbol: std::cout
ld: 0711-317 ERROR: Undefined symbol: .std::basic_ostream<char, std::char_traits<char> >& std:
perator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)
ld: 0711-317 ERROR: Undefined symbol: .std::ios_base::Init::Init[in-charge]()
ld: 0711-317 ERROR: Undefined symbol: .std::ios_base::Init::~Init [in-charge]()
ld: 0711-317 ERROR: Undefined symbol: __gxx_personality_v0
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: ld returned 8 exit status
I checked the env and there was no LD_LIBRARY_PATH
so I gave
export LD_LIBRARY_PATH=/usr/local/bin/gcc
Still it is not working.
Please give me some idea.