开发者

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

开发者 https://www.devze.com 2023-04-13 04:41 出处:网络
When I create a Delphi console application, I can deploy the generated EXE file without worrying about external DLL files. But if I createvery simple C++Builder (version 2007) console 开发者_C百科appl

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

精彩评论

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