Home
Support

Knowledge Base

BSPs and drivers
Community resources
Product documentation
Questions?
Contact us

Photon projects do not build when using C++0x
 
________________________________________________________________________

Applicable Environment
________________________________________________________________________
  • Topic: Photon projects do not build when using C++0x
  • SDP: 6.5.0
  • Target: Any supported target
________________________________________________________________________

Solution
________________________________________________________________________

When building Photon applications you may encounter compile errors if you are using -std=c++0x.

This is due to implicit definitions that GCC makes when using c++0x (STRICT_ANSI, for example) that cause the extended types in QNX headers to be disabled.

Using -std=gnu++0x instead will resolve the issue.

________________________________________________________________________
NOTE: This entry has been validated against the SDP version listed above. Use caution when considering this advice for any other SDP version. For supported releases, please reach out to QNX Technical Support if you have any questions/concerns.
________________________________________________________________________


Related Attachments
 None Found





Please contact us with your questions or concerns.