This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: vector
- From: Laurent Pinchart <laurent dot pinchart at capflow dot com>
- To: cygwin at cygwin dot com
- Cc: Dan Mergens <dan at photon dot com>
- Date: Thu, 22 Aug 2002 10:15:27 +0200
- Subject: Re: vector
- Organization: Capflow
- References: <3D649A95.3503A7BF@photon.com>
> I'm baffled why this simple program produces the following errors.
> Strangly enough, if I remove the push_back call, it compiles without
> complaint.
[...]
> $ gcc test.C
[...]
It's a C++ program. You have to use g++. Naming your file test.cpp instead of
test.C would be a good idea too.
Laurent Pinchart
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/