将 CString 替换为 mingw 编译器中的 eclipse
Replacing CString in mingw compiler for eclipse
我有一些比较大的代码,但其中有一部分使用了名为CString
(http://msdn.microsoft.com/en-us/library/aa300688%28v=vs.60%29.aspx)的东西。现在我正在 eclipse 上使用 mingw 编译器,它似乎没有识别出它,这是有意义的。但是我需要使用代码的另一部分。我知道我可以用 const char * 替换 CString,但有几个函数,如 append,代码使用但没有定义。我想知道移植此代码的最佳方法是什么?还有其他 stdafx.h 依赖项,如 _T()。我现在应该采取的最佳方法是什么?
CodeProject 上有一个 CString 替代品。我只是在谷歌上搜索"CString alternative"。我没有看过它,但它应该更容易使用它而不是std::string
.
相关文章:
- 将编译器开关添加到 Eclipse CDT 内置编译器设置生成?
- Eclipse 编译器有没有办法将变量中的地址字段显示为整数值?
- eclipse opencv 3.1.0库编译器在Windows上的问题
- 带有Eclipse的Microsoft Visual C++Build Tools编译器
- Eclipse CDT 编译静态库与主项目编译器设置
- Eclipse CDT-输出 - 使用VS编译器时无用
- Eclipse 编译器包含路径子目录
- 为什么Eclipse没有附带编译器
- 如何在eclipse中设置编译器使用borland C++Builder 3
- 如何在 eclipse makefile 项目中的编译器选项中设置 -std=c++0x
- Eclipse 中的编译器标志
- 将 CString 替换为 mingw 编译器中的 eclipse
- 在 eclipse 中使用 migw 编译器对构建 Tapi3 c++ 示例时出错
- 在eclipse CDT GCC Builtin编译器上,处的std矢量无法解析
- Eclipse CDT构建控制台输出不显示整个编译器输出
- c++eclipse奇数编译器错误消息
- Eclipse CDT不能与集成了Cygwin编译器的OpenCV 2.0一起工作
- eclipse中的交叉编译器前缀和路径
- 如何从Unix命令行安装c和c++编译器,然后与Eclipse一起使用
- Eclipse编译器:非静态成员和错误2