STL容器支持Windows Mobile [英] STL containers support for Windows Mobile
问题描述
经过几天的调试我的Windows Mobile应用程序后,我得出一个结论,我得到的错误只是由我添加的 std :: list
代码。
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.
添加此小段代码后:
std::list<int> x;
x.push_back(234);
我的应用程序崩溃。
问题出现:哪些STL的容器可以在Windows Mobile中使用,哪些不能?
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.
推荐答案
如果你的程序编译和链接精细,不应该有任何缺失或崩溃(对于删除或不支持的东西,你应该期望编译器错误(例如未知的变量/函数/ whater或某种预处理器警告/错误)。更可能有一些其他螺丝您是否尝试使用最小程序重现问题?
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?
这篇关于STL容器支持Windows Mobile的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!