开发者

How create an standalone (without DLL file dependencies) C++Builder console application like a Delphi application?

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 开发者_C百科application (no VCL) the EXE file requires the CC3280MT.dll file to run.

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;
}


  1. In the project options, uncheck the linker option "Dynamic RTL".
  2. In the packages options, uncheck "Link with runtime packages".


Also you should uncheck:

Project Options -> C++ Linker -> Link with the Delphi Runtime Library ...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜