Page 1 of 1
[Help] Using the actual purebasic compiler?
Posted: Thu Sep 20, 2007 1:31 pm
by ..::Origin::..
Has anyone ever written a guide or example on how to use the purebasic compiler? By this i mean for example creating an executable from some source. If so could i see it? Serious posters only please...I don't want to be bombarded by "Open PureBasic, go into Compiler and create executable"'s. :roll:
Thanks for reading. - Orig
Posted: Thu Sep 20, 2007 1:36 pm
by Fluid Byte
RTFM! All commandline parameters for the compiler are listed in the docs.
Posted: Thu Sep 20, 2007 2:09 pm
by ..::Origin::..
Doh, i found it. *feels like an idiot*
I suppose there's no way to use the compiler in some sort of CLI manner, is there?
For example telling the compiler: CreateFile(0,"test")
WriteStringN(0,"test")
CloseFile(0)
All in different sessions yet having it still all work?
Posted: Thu Sep 20, 2007 2:25 pm
by freak
In PureBasic 4.10, the 'CompilerInterface.txt' in the LibrarySDK folder might be what you
are looking for.
Posted: Thu Sep 20, 2007 2:34 pm
by thefool
In PureBasic 4.10, the 'CompilerInterface.txt' in the LibrarySDK folder might be what you
are looking for.
Posted: Thu Sep 20, 2007 2:44 pm
by PB
In PureBasic 4.10, the 'CompilerInterface.txt' in the LibrarySDK folder might be what you
are looking for.
Posted: Thu Sep 20, 2007 2:47 pm
by ..::Origin::..
:roll:
Posted: Thu Sep 20, 2007 2:47 pm
by thefool
Relax man

Posted: Thu Sep 20, 2007 2:49 pm
by ..::Origin::..
hi-jacked in less then an hour...We've sunk a new low.

Posted: Thu Sep 20, 2007 2:54 pm
by Fluid Byte
In PureBasic 4.10, the 'CompilerInterface.txt' in the LibrarySDK folder might be what you
are looking for.
Posted: Thu Sep 20, 2007 2:56 pm
by ..::Origin::..
*cries*
Posted: Thu Sep 20, 2007 2:58 pm
by Fluid Byte
The compiler doesn't support writing a particular string to a particular file at a particular position by using commandline. You could hack a basic interpreter together for this task.
Posted: Thu Sep 20, 2007 2:58 pm
by Trond
freak wrote:In PureBasic 4.10, the 'CompilerInterface.txt' in the LibrarySDK folder might be what you
are looking for.
freak wrote:In PureBasic 4.10, the 'CompilerInterface.txt' in the LibrarySDK folder might be what you
are looking for.
thefool wrote:In PureBasic 4.10, the 'CompilerInterface.txt' in the LibrarySDK folder might be what you
are looking for.
PB wrote:In PureBasic 4.10, the 'CompilerInterface.txt' in the LibrarySDK folder might be what you
are looking for.
Fluid Byte wrote:In PureBasic 4.10, the 'CompilerInterface.txt' in the LibrarySDK folder might be what you
are looking for.
I think you're looking for the command "echo".
To compile a file: pbcompiler file.pb
To see available options: pbcompiler /?
Posted: Tue Sep 25, 2007 3:44 am
by mskuma
freak, thefool, PB, Fluid Byte wrote: In PureBasic 4.10, the 'CompilerInterface.txt' ..
give the poor guy a break.. I've just tried to find a ref in the help file for this text file and there is none (or maybe the help search is not effective). It would be helpful to add a note at the end of the help file section "Commandline options for the IDE" something like 'For more information, please refer to 'CompilerInterface.txt' in the Library SDK folder, because certainly this txt file is not such an obvious find.
Posted: Tue Sep 25, 2007 11:20 am
by Trond
mskuma wrote:freak, thefool, PB, Fluid Byte wrote: In PureBasic 4.10, the 'CompilerInterface.txt' ..
give the poor guy a break.. I've just tried to find a ref in the help file for this text file and there is none (or maybe the help search is not effective). It would be helpful to add a note at the end of the help file section "Commandline options for the IDE" something like 'For more information, please refer to 'CompilerInterface.txt' in the Library SDK folder, because certainly this txt file is not such an obvious find.
That file is not for interacting with the IDE from the command line. type pbcompiler /? to get information on that.