STL containers support for Windows Mobile

混江龙づ霸主 提交于 2019-12-11 06:45:24

问题


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?



来源:https://stackoverflow.com/questions/8874059/stl-containers-support-for-windows-mobile

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!