English 中文(简体)
How tell the compiler to copy a file somewhere else after it is built?
原标题:

I have two computers. One is intended to be left free for high-performance activities (such as playing games) The other is my all purpose computer where I install all the apps I use for creating things, and so on.

On the second computer I use Codegear C++ Builder to work on an app that I use on the first computer.

If I have BCB compile to comp 1 it is hopeless. It becomes unresponsive. It compiles locally very quickly. So what I do is compile locally and then copy the exe to the other machine.

Well, I m all for streamlining processes, so I want a way to compile on PC2 and use on PC1 without any intermediate steps.

So is it possible to have BCB do the compiling on PC2 and create a local exe file, then copy the file to PC 1?

最佳回答

Older versions of BCB support creating makefiles from projects which can easily be modified to copy files. Most versions of BCB support having batch files as part of the project. The latest versions of BCB have build events which could copy files for you.

Which version of BCB are you using?

问题回答

暂无回答




相关问题
java in-memory on-the-fly class compilation (and loading)

I want to revisit an old question of mine about in-memory "compilation" of classes. Since about 1/2 a year have passed since I asked (and was somewhat answered), I d like to re-raise the issue and see ...

(c)make - resursive compile

Let s assume I have directories like: dir1 main.cpp dir2 abc.cpp dir3 def.cpp dir4 ghi.cpp jkl.cpp And let s assume that main.cpp ...

How to link to a static library in C?

I use code::blocks to compile my static library. The output result is a libstatic.a file. Now, how do I link to my library to use functions that were compiled? (I tried to use #include "libstatic.a"...

Statically linking Winsock?

I m using Winsock 1.1 in my project. I include wsock32.lib in "Additional Dependencies". I m looking at the DLL project using depends.exe and notice that the DLL depends on wsock32.dll. How can I ...

热门标签