Page 1 of 1
Posted: Sun Mar 03, 2002 11:20 pm
by BackupUser
Restored from previous forum. Originally posted by ajm.
Hi
I'm new to Purebasic and have set up the editor I use for all my programming needs (MED Editor).
Could somebody tell me if there is a compiler option to create a console app.
I can't find anything in the manual or within the forums.
Thanks
Andy
Posted: Sun Mar 03, 2002 11:52 pm
by BackupUser
Restored from previous forum. Originally posted by PB.
> Could somebody tell me if there is a compiler option to create a console app.
I don't know how to do it via a third-party editor, but in the Compiler Options
of the PureBasic editor is a setting called "Executable Format" -- so just select
"Console" there.
PB - Registered PureBasic Coder
Edited by - PB on 03 March 2002 23:54:05
Posted: Mon Mar 04, 2002 1:04 am
by BackupUser
Restored from previous forum. Originally posted by El_Choni.
You must use the /CONSOLE switch in the command line.
Bye,
El_Choni
Posted: Mon Mar 04, 2002 5:33 am
by BackupUser
Restored from previous forum. Originally posted by MrVainSCL.
Hi ajm
First welcome to PureBasic! Yes, as El_Choni said, you have to use the command line... Have a look to your PureBasic\Compilers\ directory... there is a fill called "PBCompiler.exe" ... Just type in you commandline "PBCompiler /?" to get all infos what you can do with it... have fun and happy coding... bye
PIII450, 256MB Ram, 6GB HD, RivaTNT, DirectX8.1, SB AWE64, Win98SE + Updates...
greetz
MrVainSCL! aka Thorsten
Posted: Mon Mar 04, 2002 5:54 am
by BackupUser
Restored from previous forum. Originally posted by PB.
> You must use the /CONSOLE switch in the command line.
Oops, I totally misunderstood the original post!
PB - Registered PureBasic Coder
Posted: Mon Mar 04, 2002 4:25 pm
by BackupUser
Restored from previous forum. Originally posted by ajm.
I have tried the /CONSOLE option to pbcompiler but get the response unknown switch.
Am I doing something wrong.
pbcompiler /CONSOLE /DEBUGGER test.pb
Thanks
Andy
Posted: Mon Mar 04, 2002 4:52 pm
by BackupUser
Restored from previous forum. Originally posted by El_Choni.
I don't know where did I take the /CONSOLE idea from. That switch just doesn't exist. What you should do is this (you must do it just once with you code):
* Open your PB source with PB.
* Set the executable format to Console.
* Save the sorce.
From now on, when you open your project with your Text editor, you'll see this line at the bottom, which is hidden when opening from PB editor:
; ExecutableFormat=Console
You may think: why not typing this directly in the text editor? The reason is that, before that line, the PB editor inserts a null character, which may not be easy to insert from a Text editor.
You can change the format easily now:
; ExecutableFormat=Windows
Hope this helps, bye,
El_Choni
Posted: Mon Mar 04, 2002 4:58 pm
by BackupUser
Restored from previous forum. Originally posted by Franco.
I have tried the /CONSOLE option to pbcompiler but get the response unknown switch.
Same here...
BTW the pbcompiler says:
Quick Help:
-----------
PBCompiler "FileName"
Options:
-----------
/DEBUGGER: Enable the debugger
/EXE "FileName": Create an executable to the given filename
/QUIET: Disable all unnecessary textoutput
/COMMENTED: Produce commented asm output (PureBasic.asm)
/REASM: Compile the 'PureBasic.asm' file to an executable
/NT4: Generate NT4.0 compliant executable
/INLINEASM: Enable the inline ASM support
/RESIDENT "FileName": Create a resident file to the given filename
/STANDBY: Wait for external commands (editor, scripts...)
Would be nice if the version # would be shown too.
The above Quick Help is from version 2.95 for Windows.
Andy if you look at a *.pb file with a normal text viewer you will see (if you worked with the PB Editor) that at the end is the information about Console or Windows mode (after a special char).
Suppose Fred forgot this switch for the outside world.
Have a nice day...
Franco
Sometimes you have to go a lonely way to accomplish genius things.
Posted: Mon Mar 04, 2002 5:37 pm
by BackupUser
Restored from previous forum. Originally posted by MrVainSCL.
Hi @ all
I think i have here some undocumented options for the compiler, just test it...
Code: Select all
Undocumented:
-------------
/? - Display Help File
/DLL - Create DLL
/ICON - Include your Icon to the executeable
If i find out how to create CONSOLE i will tell you...
PIII450, 256MB Ram, 6GB HD, RivaTNT, DirectX8.1, SB AWE64, Win98SE + Updates...
greetz
MrVainSCL! aka Thorsten