Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Parameters for db.exe

Author
Message
Dark Basic Italy
21
Years of Service
User Offline
Joined: 19th Sep 2002
Location:
Posted: 16th Nov 2002 00:00
Hi,
I have a question

let's suppose I have a source code: test.dba

How can I compile this file in dos prompt?

is there any parameter to pass to db.exe or what?

for example db.exe -compile test.dba

helps appreciated
thank u
Delta
21
Years of Service
User Offline
Joined: 15th Nov 2002
Location:
Posted: 16th Nov 2002 02:49
-c is compile
-x is execute
-b is make EXE
-f is make self contained EXE

not sure exactly how you want to use them but thats them, and as far as I know you will still need to be in windows to use them anyway :S

Dark Basic Italy
21
Years of Service
User Offline
Joined: 19th Sep 2002
Location:
Posted: 16th Nov 2002 05:59
Hi,
thanks for your answer first of all.

Do you know if the same parameters can be used for db pro compiler? How did you get those params?

thanks again

Delta
21
Years of Service
User Offline
Joined: 15th Nov 2002
Location:
Posted: 16th Nov 2002 13:48
I assume that DarkBASIC Pro will use the same, it would make sence, but im not exactly sure (I dont have pro)

I found them out as they are the default settings in DarkEDIT witch workes with DB.exe to compile and run programs

David T
Retired Moderator
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 16th Nov 2002 16:49
So, to compile a file would it be

.../db.exe -c C:/MyProg.dba?

I love Star Trek.
Especially the Episodes with Starships in.
Delta
21
Years of Service
User Offline
Joined: 15th Nov 2002
Location:
Posted: 17th Nov 2002 00:57
Im not exactly sure, best thing would be just to try it

Scilynt
21
Years of Service
User Offline
Joined: 13th Nov 2002
Location: .-#-.
Posted: 17th Nov 2002 15:21
Straight from the DB Help files:

COMMAND LINE COMPILER


If you prefer to use an external editor to edit your programs, you can use the command line compiler. The command line compiler allows you to compile, run and build executables without entering DarkBASIC.

1. Compiling Externally
DB.EXE -c test.dba

2. Running Externally
DB.EXE -x test.dba

3. Building An Executable Externally (no media)
DB.EXE -b "small.exe" test.dba

4. Building An Executable Externally (with media)
DB.EXE -f "large.exe" test.dba

5. Using Relative and Absolute Paths
C:\Program Files\Dark Basic Software\Dark Basic\DB.EXE -f "d:\mywork\large.exe" test.dba

When using relative paths, ensure your current directory is the project directory containing the DBA program. Your current directory will be used to write the final executable and DBCompile.LOG file. You can override this behaviour by using Absolute paths when asked for a filename in the command line. The DBCompile.LOG file contains any error messages, or completion strings returned by the compiler. The file will also include the line number at which the syntax/runtime error occurred.

Cya
Sx2

Shadow Robert
21
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 18th Nov 2002 06:08
DarkBasic Pro also uses those for compiling, but i'm not sure howto tell it where to use the dba's to compile

Anata aru kowagaru no watashi!

Login to post a reply

Server time is: 2024-04-23 14:55:03
Your offset time is: 2024-04-23 14:55:03