This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: G++ seems broken


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]