Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 > > int main() { > vector 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/