pbi include file question

Just starting out? Need help? Post your questions and find answers here.
cecilcheah
Enthusiast
Enthusiast
Posts: 168
Joined: Wed Jun 04, 2003 8:44 am
Location: Switzerland

pbi include file question

Post by cecilcheah »

Hi

When i include a pbi file in a pb file, and when i make an exe of my application, do i need to include the pbi file for distribution? Or is it already benn compiled in the exe file together?

Can i name the pbi file anything i want? or it has to be pbi?

Cecil
freak
PureBasic Team
PureBasic Team
Posts: 5948
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

You can name it however you want.
The compiler compiles the Included files, just as if the code inside these
files would be in the main source.

So you don't have to distribute them.

Timo
quidquid Latine dictum sit altum videtur
Saboteur
Enthusiast
Enthusiast
Posts: 273
Joined: Fri Apr 25, 2003 7:09 pm
Location: (Madrid) Spain
Contact:

Post by Saboteur »

The pbi is compiled too. You can use any name, for example, you can include anothers .pb

Bye... :)
[:: PB Registered ::]

Win10 Intel core i5-3330 8GB RAM Nvidia GTX 1050Ti
traumatic
PureBasic Expert
PureBasic Expert
Posts: 1661
Joined: Sun Apr 27, 2003 4:41 pm
Location: Germany
Contact:

Re: pbi include file question

Post by traumatic »

cecilcheah wrote: When i include a pbi file in a pb file, and when i make an exe of my application, do i need to include the pbi file for distribution? Or is it already benn compiled in the exe file together?
to include a sourcefile means that it's the same as if you were typing all the code right where you included it. to include files just makes life easier.
Can i name the pbi file anything i want? or it has to be pbi?
yes, you can name it the way you want. i guess ".pbi" stands for PB-include.
I call them ".pbh" in memories of c header includefiles.
Good programmers don't comment their code. It was hard to write, should be hard to read.
traumatic
PureBasic Expert
PureBasic Expert
Posts: 1661
Joined: Sun Apr 27, 2003 4:41 pm
Location: Germany
Contact:

Re: pbi include file question

Post by traumatic »

Ok, I'll quit for today - I'm always the last :(
Good programmers don't comment their code. It was hard to write, should be hard to read.
Post Reply