[Help] Using the actual purebasic compiler?

Everything else that doesn't fall into one of the other PB categories.
..::Origin::..
Enthusiast
Enthusiast
Posts: 125
Joined: Sat Jun 17, 2006 3:15 pm

[Help] Using the actual purebasic compiler?

Post 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
User avatar
Fluid Byte
Addict
Addict
Posts: 2336
Joined: Fri Jul 21, 2006 4:41 am
Location: Berlin, Germany

Post by Fluid Byte »

RTFM! All commandline parameters for the compiler are listed in the docs.
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
..::Origin::..
Enthusiast
Enthusiast
Posts: 125
Joined: Sat Jun 17, 2006 3:15 pm

Post 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?
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

In PureBasic 4.10, the 'CompilerInterface.txt' in the LibrarySDK folder might be what you
are looking for.
quidquid Latine dictum sit altum videtur
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

In PureBasic 4.10, the 'CompilerInterface.txt' in the LibrarySDK folder might be what you
are looking for.
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

In PureBasic 4.10, the 'CompilerInterface.txt' in the LibrarySDK folder might be what you
are looking for.
..::Origin::..
Enthusiast
Enthusiast
Posts: 125
Joined: Sat Jun 17, 2006 3:15 pm

Post by ..::Origin::.. »

:roll:
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

Relax man 8)
..::Origin::..
Enthusiast
Enthusiast
Posts: 125
Joined: Sat Jun 17, 2006 3:15 pm

Post by ..::Origin::.. »

hi-jacked in less then an hour...We've sunk a new low. :?
User avatar
Fluid Byte
Addict
Addict
Posts: 2336
Joined: Fri Jul 21, 2006 4:41 am
Location: Berlin, Germany

Post by Fluid Byte »

In PureBasic 4.10, the 'CompilerInterface.txt' in the LibrarySDK folder might be what you
are looking for.
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
..::Origin::..
Enthusiast
Enthusiast
Posts: 125
Joined: Sat Jun 17, 2006 3:15 pm

Post by ..::Origin::.. »

*cries*
User avatar
Fluid Byte
Addict
Addict
Posts: 2336
Joined: Fri Jul 21, 2006 4:41 am
Location: Berlin, Germany

Post 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.
Last edited by Fluid Byte on Thu Sep 20, 2007 2:58 pm, edited 1 time in total.
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post 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 /?
mskuma
Enthusiast
Enthusiast
Posts: 573
Joined: Sat Dec 03, 2005 1:31 am
Location: Australia

Post 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.
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post 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.
Post Reply