Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - errors in stl.h when compiling QNX c++ PhAB project: (6 Items)
   
errors in stl.h when compiling QNX c++ PhAB project  
I created a simple QNX C++ project for an X86 target using PhAB. In the global header lsrStl.h I put the line
#include <stl.h>
When I tried to compile the example I got a number of errors from the stl.h file. The location of stl.h is /usr/qnx640/
target/qnx6/usr/include/cpp. I have succesfully used stl.h in a more complicated project in qnx632. Attached is a list 
of the compile errors
Attachment: Text stlerrors.txt 4.08 KB
RE: errors in stl.h when compiling QNX c++ PhAB project  
There could be some extra character in your source file.  I often get this sort of error if I load a file with the IDE 
but my brain hasn't the vim mode off. Hence i type 'i' to insert stuff and end up with an i at the beginning of the file
 ;-)

> -----Original Message-----
> From: John McClurkin [mailto:community-noreply@qnx.com]
> Sent: December-09-08 12:53 PM
> To: momentics-community
> Subject: errors in stl.h when compiling QNX c++ PhAB project
> 
> I created a simple QNX C++ project for an X86 target using PhAB. In the
> global header lsrStl.h I put the line #include <stl.h> When I tried to
> compile the example I got a number of errors from the stl.h file. The
> location of stl.h is /usr/qnx640/target/qnx6/usr/include/cpp. I have
> succesfully used stl.h in a more complicated project in qnx632.
> Attached is a list of the compile errors
> 
> _______________________________________________
> QNX Momentics Community Support
> http://community.qnx.com/sf/go/post18207
Re: RE: errors in stl.h when compiling QNX c++ PhAB project  
Thanks for your replay Mario. The only file I edited for this test was the global header file lsrStl.h which I attach 
below. I looked at this file with khexedit on a linux machine and didn't see any extra characters. Also, I copied the 
entire project (cp -r tstStl ../qnx632/.) to a machine running qnx632 and it compiled without errors. I would appreciate
 any further ideas you might have as to where I might turn.
Thanks
Attachment: Text lsrStl.h 86 bytes
RE: RE: errors in stl.h when compiling QNX c++ PhAB project  
I can reproduce your problem. It seems thing like size_type, const_iterator can`t be resolved.  Will let the QNX people 
comment on it .

I`ve never use stl.h myself, only use the #include of the featured I needed ( <vector>, <string> etc). Much lighter on 
the compiler ;-)  If your code allows it maybe you can write your own verstion of stl.h that includes all the stl header
 file but doesn't define the template as found in stl.h.

 
> -----Original Message-----
> From: John McClurkin [mailto:community-noreply@qnx.com]
> Sent: December-10-08 8:56 AM
> To: momentics-community
> Subject: Re: RE: errors in stl.h when compiling QNX c++ PhAB project
> 
> Thanks for your replay Mario. The only file I edited for this test was
> the global header file lsrStl.h which I attach below. I looked at this
> file with khexedit on a linux machine and didn't see any extra
> characters. Also, I copied the entire project (cp -r tstStl
> ../qnx632/.) to a machine running qnx632 and it compiled without
> errors. I would appreciate any further ideas you might have as to where
> I might turn.
> Thanks
> 
> _______________________________________________
> QNX Momentics Community Support
> http://community.qnx.com/sf/go/post18282
Re: RE: RE: errors in stl.h when compiling QNX c++ PhAB project  
Thanks,
#Including only the headers needed did the trick. QNX might want to fix that, since use of stl.h is scattered throughout
 their documentation


RE: RE: RE: errors in stl.h when compiling QNX c++ PhAB project  
I checked our docs, and the only references to stl.h are in the docs
that we get from Dinkumware.


Steve Reid (stever@qnx.com)
Technical Editor
QNX Software Systems