logo       

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

gcc.help

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

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>

typedef struct {
// snip
} WAVEDATA;

typedef struct {
//snip
} EVENT;

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. I've looked at the GCC manual but have seen no obvious solution.
Any help would be appreciated.
Thank you

On Fri, 2003-05-23 at 15:48, Israel Fdez Cabrera wrote:
> just add an include line for each stl class U want:
>
> #include <lsit> for list
> #include <vector> for vector
> #include <string> for string ....
>
> On Friday 23 May 2003 02:51 pm, John McClurkin - LMO wrote:
> > Hello,
> > I have developed a C++ application that uses the Standard Template
> > Library using gcc-2.96 on an x86 machine under RedHat Linux V7.2. When I
> > try to compile the application on an x86 machine under RedHat Linux V9.0
> > using gcc-3.2.2-5, I get an error saying
> > "stl.h No such file or directory". Stl.h does exist in
> > /usr/include/g++-3/. If I add /usr/include/g++-3 to the include search
> > path, the compiler finds stl.h, but generates a host of errors arising
> > out of the STL header files.
> > Is there some flag that I need to set?
> > Thank you for your help.
--
--------------------------------------+--------------------------
John W. McClurkin, PhD. | jwm@xxxxxxxxxxxxxxx
Information Technology Specialist | VOX: 301-496-9216
Laboratory of Sensorimotor Research | FAX: 301-409-0511
National Eye Institute, NIH |
--------------------------------------+--------------------------







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

News | FAQ | advertise