delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/06/03/05:20:27

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Thu, 3 Jun 2004 10:26:54 +0100
From: Roger Leigh <roger DOT leigh AT epictechnology DOT co DOT uk>
To: cygwin AT cygwin DOT com
Subject: Re: G++ seems broken
Message-ID: <20040603092654.GA11245@system10>
References: <40BC3795 DOT 7030902 AT sysgo DOT com> <004e01c4494b$56032cc0$c3a35982 AT andromeda>
Mime-Version: 1.0
In-Reply-To: <004e01c4494b$56032cc0$c3a35982@andromeda>
X-GPG-Key: 0x25BFB848
X-Debian: testing/unstable
X-OS-Uptime: 10:25:17 up 1:09, 4 users, load average: 0.07, 0.05, 0.03
User-Agent: Mutt/1.5.5.1+cvs20040105i

On Thu, Jun 03, 2004 at 11:15:33AM +0200, Bart van der Werf (Bluelive) wrote:
> #include <vector>
> 
> int main() {
>    vector<int> quux;
>    return 0;
> }
> 
> g++ test.cpp
> test.cpp: In function `int main()':
> test.cpp:4: error: `vector' undeclared (first use this function)

Your code is not using the std:: namespace.  Try std::vector instead.


-- 
Roger Leigh

                Printing on GNU/Linux?  http://gimp-print.sourceforge.net/
                GPG Public Key: 0x25BFB848.  Please sign and encrypt your mail.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019