Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - Using C++ tr1 extensions: Page 1 of 5 (5 Items)
   
Using C++ tr1 extensions  
I am interested in using the c++ tr1 extensions.

I am having problems configuring a QNX C++ project to use these extensions.

tr1 is found in $(QNX_TARGET)/usr/include/c++/4.3.3

So...I add this path to the Include path, but the compiler complains:


bits/c++allocator.h: No such file or directory	allocator.h	

as well as other files in bits/ it can't find.

The specific files bits/xxx.h are in a target specific subdirectory. I surmise I need to add some sort of target 
specific info to my project, but I don't know what that is.

I am using Momentics 4.6.1 and, of course, qcc 4.3.3. Target is only x86 at this time.

Thanks.

Test Program:

#include <cstdlib>
#include <iostream>
#include <tr1/tuple>

int main(int argc, char *argv[]) {
	std::cout << "Test using TR1 extensions" << std::endl;
	return EXIT_SUCCESS;
}