g++ doesn't find default libraries

I have the problem that g++ doesn't find anymore default libraris of STL etc.
For example if i want to complile:
1
2
3
4
5
6
#include <iostream>

int main()
{
    return 0;
}

I get the error message:
1
2
g++ -Wall main.cpp
main.cpp:7:20: error: iostream: no such file or directory

I'm using Debian wheezy with gcc version 4.4.5 (Debian 4.4.5-8) and build-essential 11.5 0

Solution:
g++ was set to the wrong compiler in .profile
Last edited on
Topic archived. No new replies allowed.