logo       

Re: Converting from gcc-2.96 to gcc-3.2.2: msg#00213

gcc.help

Subject: Re: Converting from gcc-2.96 to gcc-3.2.2

John McClurkin - LMO <jwm@xxxxxxxxxxxxxxx> 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




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise