9

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.

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;
}
Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Salvador
  • 16,132
  • 33
  • 143
  • 245
  • FYI: CC3280MT.DLL + BorlandMM.dll are the two files you need to redistribute when you have runtime packages turned on for C++Builder apps, and they comprise the shared memory management layer. – Warren P Oct 17 '11 at 14:16
  • possible duplicate of [Build project package C++ Builder](http://stackoverflow.com/questions/12775229/build-project-package-c-builder) – Roddy Mar 04 '13 at 21:02

2 Answers2

22
  1. In the project options, uncheck the linker option "Dynamic RTL".
  2. In the packages options, uncheck "Link with runtime packages".
ildjarn
  • 62,044
  • 9
  • 127
  • 211
2

Also you should uncheck:

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

nickolay
  • 3,643
  • 3
  • 32
  • 40