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 Professional Discussion / Question about compiling from something other than the IDE.

Author
Message
bruceatk
22
Years of Service
User Offline
Joined: 25th Aug 2003
Location: Loudon, NH
Posted: 3rd Oct 2003 02:33 Edited at: 3rd Oct 2003 02:33
I have created a syntax file for Textpad and a Lexer definition for CodeWright so that I can use them to edit DB Pro source. I also created a batch file that I can use from Textpad and CodeWright to compile the source.

Here is my question. Is the proper setup of compiling DBPro outside of the IDE documented anywhere? I got it to work by snooping around, but I would like to do it correctly. I like using either Textpad or CodeWright over the standard IDE.

Bruce
Rob K
Retired Moderator
23
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 3rd Oct 2003 03:03
It is fairly easy.

You basically create the .dbpro file (open an existing one in Notepad for an example), the only entries which matter to the compiler are the media ones and the final_source entry.

When you click compile the editor:

1. Creates the .dbpro file

2. Takes the main dba and all the include files and puts them into a final source file (_temp.dbsource)

3. The editor then starts the DBPCompiler, passing the .dbpro filename as a parameter (eg: C:\..\DBPCompiler.exe C:\test.dbpro)

4. The editor detects when the DBPCompiler closes, when it does, if no errors occured, it launches the created executable.

bruceatk
22
Years of Service
User Offline
Joined: 25th Aug 2003
Location: Loudon, NH
Posted: 3rd Oct 2003 03:48 Edited at: 3rd Oct 2003 03:51
What my batch file is doing now:

1. Copies the file I'm editing to temp\_Temp.dbsource
2. Copies the .DBPro file and edits the executable path
3. Executes the compiler passing it temp\_Temp.dbpro
4. Runs temp\dbp_program.exe

All I need to do is write a small program that does step 1 and 2 for me. Step 1 needs to build the file reading all the include files. At this time I'm not including any so that is why it has worked for me so far.

Thanks,
Bruce
orv
22
Years of Service
User Offline
Joined: 9th Sep 2003
Location: Chicago, IL
Posted: 16th Oct 2003 18:56
let's say that there's an error when compiling the source code, is there a file i can check for the error messages?

If you aim at nothing you'll hit it every time. 806mhz AMD Athlon Processor. 384MB memory.
Windows XP Home Edition. RADEON 9700 Pro graphics card. - editor.exe=1.0.6.1
Rob K
Retired Moderator
23
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 16th Oct 2003 22:02
C:\Program Files\Dark Basic Software\Dark Basic Professional\TEMP\ErrorReport.txt

IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 16th Oct 2003 22:44
That's the file, but remove it before you compile as this file only gets changed or created when an error occurs.
orv
22
Years of Service
User Offline
Joined: 9th Sep 2003
Location: Chicago, IL
Posted: 17th Oct 2003 19:00
cool!

If you aim at nothing you'll hit it every time. 806mhz AMD Athlon Processor. 384MB memory.
Windows XP Home Edition. RADEON 9700 Pro graphics card. - editor.exe=1.0.6.1

Login to post a reply

Server time is: 2026-07-26 09:31:10
Your offset time is: 2026-07-26 09:31:10