[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#402971: /usr/include/c++/4.1.2/cstdlib: Error on cstdlib

Package: libstdc++6-4.1-dev
Version: 4.1.1-19
Severity: important
File: /usr/include/c++/4.1.2/cstdlib

When trying to compile a code as simple as

#include <iostream>
int main(void)
	    std::cout << "Hello!" << std::endl;
	        return 0;

I get the following compile error:

$ g++ hello.cpp
error: ‘::system’ has not been declared

-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages libstdc++6-4.1-dev depends on:
ii  g++-4.1                      4.1.1-19    The GNU C++ compiler
ii  gcc-4.1-base                 4.1.1-19    The GNU Compiler Collection (base 
ii  libc6-dev                    2.3.6.ds1-8 GNU C Library: Development Librari
ii  libstdc++6                   4.1.1-19    The GNU Standard C++ Library v3

libstdc++6-4.1-dev recommends no packages.

-- no debconf information

Reply to: