STL containers support for Windows Mobile

2019-07-30 00:13发布

问题:

After days of debugging my Windows Mobile application I have came to a conclusion that the error I get is simply caused by std::list code which I have added.

Just after adding this small piece of code :

std::list<int> x;
x.push_back(234);

My application crushes.

Therefore my question arises : Which of the STL's containers can be used in Windows Mobile and which cannot ?

I have found this question but i do not find it useful for my problem.

回答1:

If your program compiles and links fine, there shouldn't be anything missing or crashing (for removed or unsupported stuff you should expect a compiler error (e.g. "unknown variable/function/whater" or some kind of preprocessor warning/error). It's more likely there's some other screw up in your code. Have you tried to reproduce the issue using a minimal program?