DELPHI源码如何编译为可执行文件
我有一个DELPHI开发的进销存源码,但不知道怎么把它用DELPHI编译或生成为可执行文件。请高手指点一下。声明:本人今天第一天用DELPHI,可能这个问题有点白痴,但还...
我有一个DELPHI开发的进销存源码,但不知道怎么把它用DELPHI编译或生成为可执行文件。请高手指点一下。声明:本人今天第一天用DELPHI,可能这个问题有点白痴,但还是请高手指点一下,谢谢
展开
6个回答
展开全部
编译Delphi要用到 dcc32.exe,此文件位于 Delphi安装文件夹\bin里面
命令行运行,说明如下:
Syntax: dcc32 [options] filename [options]
-A<unit>=<alias> = Set unit alias -LU<package> = Use package
-B = Build all units -M = Make modified units
-CC = Console target -N<path> = DCU output directory
-CG = GUI target -O<paths> = Object directories
-D<syms> = Define conditionals -P = look for 8.3 file names also
-E<path> = EXE output directory -Q = Quiet compile
-F<offset> = Find error -R<paths> = Resource directories
-GD = Detailed map file -U<paths> = Unit directories
-GP = Map file with publics -V = Debug information in EXE
-GS = Map file with segments -VR = Generate remote debug (RSM)
-H = Output hint messages -W = Output warning messages
-I<paths> = Include directories -Z = Output 'never build' DCPs
-J = Generate .obj file -$<dir> = Compiler directive
-JP = Generate C++ .obj file --help = Show this help screen
-K<addr> = Set image base addr --version = Show name and version
Compiler switches: -$<letter><state> (defaults are shown below)
A8 Aligned record fields P+ Open string params
B- Full boolean Evaluation Q- Integer overflow checking
C+ Evaluate assertions at runtime R- Range checking
D+ Debug information T- Typed @ operator
G+ Use imported data references U- Pentium(tm)-safe divide
H+ Use long strings by default V+ Strict var-strings
I+ I/O checking W- Generate stack frames
J- Writeable structured consts X+ Extended syntax
L+ Local debug symbols Y+ Symbol reference info
M- Runtime type info Z1 Minimum size of enum types
O+ Optimization
如果要编译一个项目有多个文件,或者包涵资源文件,一般使用图形开发环境进行编译。
命令行运行,说明如下:
Syntax: dcc32 [options] filename [options]
-A<unit>=<alias> = Set unit alias -LU<package> = Use package
-B = Build all units -M = Make modified units
-CC = Console target -N<path> = DCU output directory
-CG = GUI target -O<paths> = Object directories
-D<syms> = Define conditionals -P = look for 8.3 file names also
-E<path> = EXE output directory -Q = Quiet compile
-F<offset> = Find error -R<paths> = Resource directories
-GD = Detailed map file -U<paths> = Unit directories
-GP = Map file with publics -V = Debug information in EXE
-GS = Map file with segments -VR = Generate remote debug (RSM)
-H = Output hint messages -W = Output warning messages
-I<paths> = Include directories -Z = Output 'never build' DCPs
-J = Generate .obj file -$<dir> = Compiler directive
-JP = Generate C++ .obj file --help = Show this help screen
-K<addr> = Set image base addr --version = Show name and version
Compiler switches: -$<letter><state> (defaults are shown below)
A8 Aligned record fields P+ Open string params
B- Full boolean Evaluation Q- Integer overflow checking
C+ Evaluate assertions at runtime R- Range checking
D+ Debug information T- Typed @ operator
G+ Use imported data references U- Pentium(tm)-safe divide
H+ Use long strings by default V+ Strict var-strings
I+ I/O checking W- Generate stack frames
J- Writeable structured consts X+ Extended syntax
L+ Local debug symbols Y+ Symbol reference info
M- Runtime type info Z1 Minimum size of enum types
O+ Optimization
如果要编译一个项目有多个文件,或者包涵资源文件,一般使用图形开发环境进行编译。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
Ctrl+F9,然后你一定要看下是不是有错误,如果有错误就生成不了exe!!!!然后在进一步调试可以继续提问,希望我的回答令您满意!
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
经过编译即可执行。
源代码通常不能直接执行,即便是汇编语言编程也需进行编译形成机器代码后,CPU方可运行。
源代码通常不能直接执行,即便是汇编语言编程也需进行编译形成机器代码后,CPU方可运行。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
打开后缀名为.dpr的文件,打开后可以按F9或者菜单栏RUN里的run
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
你只要运行源代码后,就自动在原来的目录下面生成EXE文件了
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询