I recently compile a simple app for windows (actually it dows nothing....is just an interface with buttons doing nothing) and, when I run in other machine, an error appears (CC3250MT.DLL missing).
the CC3250MT.DLL is in the \bin directory of the borland compiler.
What causes this dependency?
How can I compile the program without this dependecy?
Try a release version or static linking.
To ensure a static build, go the Options page of your project and :
Packages - turn off 'Build with Runtime Packages'
Linker - turn off 'Use Dynamic RTL'
Personally, I would build all apps as static to ensure compatability. However, there may be occasions when it is desirable to link them at runtime. If you intend to do this, you must distribute the required Borland runtime libraries with your app.
And how do I do it using command line options?????
Use a makefile with 'make.exe'
If you are using the bcc5.5 cmd line tools then here are a couple of useful places to get you started:
That one will walk you through a very straightforward 'how-to'
That one will provide more concrete examples and also uses a generic makefile for windows apps.
If later on, you decide to use dynamic linking then just make sure you link with CC3250MT.DLL.
BTW The system looks for dll's in a preferred way. It looks in the 'system' directory of your windows install. If it doesn't find it there it looks in the directory of the calling process (that's the program you are trying to run). It also looks in any dir specified in the PATH command if you included it in your autoexec.bat
So a 'quick fix' to avoid recompilation is to copy the CC3250MT.DLL into the same directory as your program.
All right!! I'll take a look! thanks a lot!!