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

Bug#101223: marked as done (Undefined reference to 'cout')



Your message dated Wed, 28 Nov 2001 17:59:20 +0000
with message-id <20011128175920.H3953@parcelfarce.linux.theplanet.co.uk>
and subject line works for me
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 17 Jun 2001 19:34:46 +0000
>From gbsadler1@lcisp.com Sun Jun 17 14:34:46 2001
Return-path: <gbsadler1@lcisp.com>
Received: from (debian-home) [::ffff:12.44.140.126] 
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 15BiJp-0006TU-00; Sun, 17 Jun 2001 14:34:46 -0500
Received: from gbsadler by debian-home with local (Exim 3.22 #1 (Debian))
	id 15BiJp-0008SV-00
	for <submit@bugs.debian.org>; Sun, 17 Jun 2001 14:34:45 -0500
Date: Sun, 17 Jun 2001 14:34:45 -0500
From: Gordon Sadler <gbsadler1@lcisp.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: Undefined reference to 'cout'
Message-ID: <20010617143445.A32498@debian-home.lcisp.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.18i
X-Reportbug-Version: 1.17
Sender: Gordon Sadler <gbsadler@debian-home>
Delivered-To: submit@bugs.debian.org

Package: g++-2.95
Version: 1:2.95.4-0.010604
Severity: important

I have no idea when this started. Perhaps a packaging bug?

If you compile the attached 'hello' program:
g++ -v bar.cpp
Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.4/specs
gcc version 2.95.4 20010604 (Debian prerelease)
 /usr/lib/gcc-lib/i386-linux/2.95.4/cpp0 -lang-c++ -v -D__GNUC__=2 -D__GNUG__=2 -D__GNUC_MINOR__=95 -D__cplusplus -D__ELF__ -Dunix -D__i386__ -Dlinux -D__ELF__ -D__unix__ -D__i386__ -D__linux__ -D__unix -D__linux -Asystem(posix) -D__EXCEPTIONS -Acpu(i386)
 -Amachine(i386) -Di386 -D__i386 -D__i386__ bar.cpp /tmp/ccf6bars.ii
 GNU CPP version 2.95.4 20010604 (Debian prerelease) (i386 Linux/ELF)
 #include "..." search starts here:
 #include <...> search starts here:
/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3
/usr/lib/gcc-lib/i386-linux/2.95.4/include
/usr/include
End of search list.
The following default directories have been omitted from the search path:
/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../i386-linux/include
End of omitted list.
/usr/lib/gcc-lib/i386-linux/2.95.4/cc1plus /tmp/ccf6bars.ii -quiet -dumpbase bar.cc -version -o /tmp/ccqPnv88.s
GNU C++ version 2.95.4 20010604 (Debian prerelease) (i386-linux) compiled by GNU C version 2.95.4 20010604 (Debian prerelease).
as -V -Qy -o /tmp/ccBAeHI5.o /tmp/ccqPnv88.s
GNU assembler version 2.11.90.0.7 (i386-linux) using BFD version 2.11.90.0.7
/usr/lib/gcc-lib/i386-linux/2.95.4/collect2 -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/gcc-lib/i386-linux/2.95.4/crtbegin.o -L/usr/local/kde2.2/lib -L/usr/local/qt2.3/lib -L/usr/local/lib -L/usr/lib/gcc-lib/i386-linux/2.95.4 /tmp/ccBAeHI5.o -lstdc++ -lm -lgcc -lc -lgcc /usr/lib/gcc-lib/i386-linux/2.95.4/crtend.o /usr/lib/crtn.o
/tmp/ccBAeHI5.o: In function `main':
/tmp/ccBAeHI5.o(.text+0xf): undefined reference to `cout'
/tmp/ccBAeHI5.o(.text+0x14): undefined reference to `ostream::operator<<(char const *)'
collect2: ld returned 1 exit status

I've tried different versions (using namespace std, std::cout, cout) 
None of them will link here, same error for all. When compiled with
g++-3.0 I have no problems.

*** bar.cpp
#include <iostream>

int main ()
{
  std::cout << "hello ...\n";
  return 0;
}


-- System Information
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux debian-home 2.2.19 #1 Sat May 19 16:25:04 CDT 2001 i686
Locale: LANG=en_US, LC_CTYPE=en_US

Versions of packages g++-2.95 depends on:
ii  g++                    1:2.95.4-1        The GNU C++ compiler.             
ii  gcc-2.95               1:2.95.4-0.010604 The GNU C compiler.               
ii  libc6                  2.2.3-6           GNU C Library: Shared libraries an
ii  libstdc++2.10-dev      1:2.95.4-0.010604 The GNU stdc++ library (developmen

-- 
Gordon Sadler


---------------------------------------
Received: (at 101223-done) by bugs.debian.org; 28 Nov 2001 17:59:21 +0000
>From willy@www.linux.org.uk Wed Nov 28 11:59:21 2001
Return-path: <willy@www.linux.org.uk>
Received: from parcelfarce.linux.theplanet.co.uk (www.linux.org.uk) [195.92.249.252] (exim)
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 1698zR-0006vG-00; Wed, 28 Nov 2001 11:59:21 -0600
Received: from willy by www.linux.org.uk with local (Exim 3.33 #5)
	id 1698zQ-0004gz-00; Wed, 28 Nov 2001 17:59:20 +0000
Date: Wed, 28 Nov 2001 17:59:20 +0000
From: Matthew Wilcox <willy@debian.org>
To: 101223-done@bugs.debian.org
Cc: 101223-submitter@bugs.debian.org
Subject: works for me
Message-ID: <20011128175920.H3953@parcelfarce.linux.theplanet.co.uk>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
Sender:  <willy@www.linux.org.uk>
Delivered-To: 101223-done@bugs.debian.org


using g++ 1:2.95.4-0.011006 your test program works fine, so I'm closing
this bug.

-- 
Revolutions do not require corporate support.



Reply to: