How to compile a Win32 program from the command line using Delphi

as the title says, I'm trying to compile a Win32 program without the help of an IDE so that I can learn. I use Borland Studio 2006, and at first I thought that I needed to take some files created from the Forms application from the IDE and compile the project file ..., which gave me errors in waiting for a unit and finding an object. I know from the dfm file that contains all the settings for the form, but I don’t understand how the IDE deals with this file, can someone help me better understand the system? :)

+7
source share
4 answers

I found out that all I need to do is compile the top level block in dcu and then the project will compile. :) If someone else tries to do the same, there is some excellent information at the bottom of this page

http://www.codexterity.com/raw-delphi/index.htm

+1
source

If I understand correctly, you need to understand the structure of the Delphi project and how Forms and units work together. You cannot just select some files and expect to be able to pass them to the compiler.

You also need to set the path to the library / components / files used so that the compiler can find everything it needs, starting with the dpr project.

I would recommend that you first try to start the project from the IDE, and then, as soon as it starts, you can try it from the command line.

+2
source

WANT automates the process of creating, testing, and packaging applications and libraries such as Jakarta Ant makes

0
source

You wrote about using BDS 2006. If you want to know about the later build process in Delphi, I suggest you upgrade to at least Delphi 2007, which introduced the use of MS Build .

Of course, MS Build acts like a "wrapper", so this should not be, but it's nice to have :-)

0
source

All Articles