如何创建一个独立的(没有DLL文件依赖)C ++ Builder控制台应用程序像一个Delphi应用程序? [英] How create an standalone (without DLL file dependencies) C++Builder console application like a Delphi application?
本文介绍了如何创建一个独立的(没有DLL文件依赖)C ++ Builder控制台应用程序像一个Delphi应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我创建一个Delphi控制台应用程序,我可以部署生成的EXE文件,而不必担心外部DLL文件。但是,如果我创建非常简单的 C ++ Builder (版本2007)控制台应用程序(无 VCL )EXE文件需要 CC3280MT.dll $ c $
When I create a Delphi console application, I can deploy the generated EXE file without worrying about external DLL files. But if I create very simple C++Builder (version 2007) console application (no VCL) the EXE file requires the CC3280MT.dll
file to run.
如何避免我的C ++ Builder控制台应用程序需要 CC3280MT.dll
file?
How can I avoid which my C++Builder console application requires the CC3280MT.dll
file?
即使这个简单的代码导致这种依赖:
Even this simple code cause this dependence:
#include <iostream.h>
#pragma hdrstop
#pragma argsused
int main(int argc, char* argv[])
{
cout << "Hello" << endl;
getchar();
return 0;
}
推荐答案
- 在项目选项中,取消选中 选项动态RTL。
- 选项,取消选中与运行时软件包链接。
- In the project options, uncheck the linker option "Dynamic RTL".
- In the packages options, uncheck "Link with runtime packages".
这篇关于如何创建一个独立的(没有DLL文件依赖)C ++ Builder控制台应用程序像一个Delphi应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文