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: Oscar Fuentes <ofv at wanadoo dot es>
- To: gcc-help at gcc dot gnu dot org
- Cc: jwm at lsr dot nei dot nih dot gov
- Date: Sat, 24 May 2003 09:55:15 +0200
- Subject: Re: Converting from gcc-2.96 to gcc-3.2.2
- Cancel-lock: sha1:4oScQrGmoEM/N2Twe10N9rTP5NI=
- References: <1053715908.9579.19.camel@lsr-jwm> <200305231548.26819.israel@seg.inf.cu><1053742576.9947.22.camel@lsr-jwm>
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);
[snip]
HTH
--
Oscar