This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC 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: Converting from gcc-2.96 to gcc-3.2.2


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
> 
> 



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