Christian Damus(deleted)
|
Re: Using C++ tr1 extensions
|
Christian Damus(deleted)
01/18/2010 12:52 PM
post45415
|
Re: Using C++ tr1 extensions
Oo! Thanks, Ryan.
Definitely a superior answer. :-)
cW
On Mon, 2010-01-18 at 12:38 -0500, Ryan Mansfield wrote:
> Christian Damus wrote:
> > Hi, Keith,
> >
> > If your QNX C++ project targets only one platform (e.g., x86), then you
> > can just add
> >
> > $(QNX_TARGET)/usr/include/c++/4.3.3/i386-pc-unknown-nto-qnx6.4.0
> >
> > to your "extra include paths" property in the project settings.
> >
> > When you do add other targets to your project, then you will need to use
> > the "Advanced >>" button in the Project Properties dialog to set a
> > different include path per platform. In the platform picker at the left
> > side of the dialog choose a target platform and set the appropriate
> > include path like the one above. Make sure that the "All" selection
> > doesn't have any target-specific include path.
>
> The headers are not found because by default qcc uses the Dinkumware C++
> library which does not have tr1 support. If you switch the C++ library
> variant to GNU libstdc++ (qcc's -Y_gpp option) then qcc will add the
> include path to $(QNX_TARGET)/usr/include/c++/4.3.3/<canonical name>.
> Specifying the -Y_gpp option will link the binary against libstdc++
> instead of libcpp.
>
> The way to use the GNU libstdc++-v3 in the IDE is to go to the Linker
> tab and select in the "Link against CPP Library" select "GNU with
> Exceptions".
>
> Regards,
>
> Ryan Mansfield
>
> > On Sun, 2010-01-17 at 12:23 -0500, Keith Smith wrote:
--------8<--------
|
|
|
Keith Smith
|
Re: Using C++ tr1 extensions
|
Keith Smith
01/18/2010 5:37 PM
post45437
|
Re: Using C++ tr1 extensions
Thanks. That fixed my tr1 problem.
|
|
|