Bug#412137: g++-4.1: On one machine g++ fails to compile programs, even though all dependencies are met
Package: g++-4.1
Version: 4.1.1-21
Severity: important
*** Please type your report below this line ***
I have two similar machines with g++-4.1 installed. All dependencies are
met. On one machine g++ works perfectly, on the another one (this is the
machine on which I write this bug report) I'm not able to compile even the
simplest C++ program like:
#include <iostream>
#include <string>
using namespace std;
int main() {
string c("223");
string d("erer");
cout << c << d << "\n";
return 0;
}
I get:
$ g++ test2.cpp
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/cstdlib:135:
error: "::system" has not been declared
I have tried to "apt-get install --reinstall" g++ and all packages it
depends on. Nothing helps. Maybe this is a problem with the unspecified
dependency of the compiler?
-- System Information:
Debian Release: 4.0
APT prefers testing
APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.19.3
Locale: LANG=pl_PL.UTF-8, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Versions of packages g++-4.1 depends on:
ii gcc-4.1 4.1.1-21 The GNU C compiler
ii gcc-4.1-base 4.1.1-21 The GNU Compiler Collection
(base
ii libc6 2.3.6.ds1-11 GNU C Library: Shared libraries
ii libstdc++6-4.1-dev 4.1.1-21 The GNU Standard C++
Library v3 (d
g++-4.1 recommends no packages.
-- no debconf information
Reply to: