This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Converting from gcc-2.96 to gcc-3.2.2
- From: Stephen Biggs <xyzzy at hotpop dot com>
- To: GCC-Help list <gcc-help at gcc dot gnu dot org>
- Date: 24 May 2003 19:09:44 +0300
- Subject: Re: Converting from gcc-2.96 to gcc-3.2.2
- References: <1053715908.9579.19.camel@lsr-jwm><200305231548.26819.israel@seg.inf.cu> <1053742576.9947.22.camel@lsr-jwm> <smr4rd7g.fsf@wanadoo.es>
On Sat, 2003-05-24 at 10:55, Oscar Fuentes wrote:
> John McClurkin - LMO <jwm@lsr.nei.nih.gov> writes:
>
> > Israel,
> > Thank you for your prompt response. Adding includes for individual STL
> > types eliminated the No such file or directory error but revealed a host
> > of other errors. For example:
> >
> > #include <vector>
>
> [snip]
>
> > class MexWaveform {
> > public:
> > MexWaveform(WAVEDATA md, vector<float>& wave);
> > };
> > results in the error:
> > type specifier omitted for parameter `vector<float>`
> >
> > Nothing in any of my C++ books indicates that this code structure is
> > wrong.
>
> Read recent books (less than 6 years old). STL's vector, as the rest
> of the Standard C++ Library, lives on namespace 'std', so you need to
> type
>
> ... std::vector<float>& wave);
or in your source after all the includes:
using namespace std;
>
> [snip]
>
> HTH
>
> --
> Oscar
>
>