What .Extension do I use for Linux? How do I compile 64 Bit?

Just starting out? Need help? Post your questions and find answers here.
User avatar
Conch
New User
New User
Posts: 3
Joined: Sat Apr 28, 2012 5:17 pm
Location: Bit Shift Island.
Contact:

What .Extension do I use for Linux? How do I compile 64 Bit?

Post by Conch »

Hello PureBasic forums :)
I just started learning Basic yesterday but I'm confused.
I don't use Windows anymore & I prefer to use Linux because it's free :P
If I select the "Create Executable" option, What file extension do I use?
Will .bin work? Are there any others?

I've been using Linux for 3 years but still new.
Also is it possible for me to compile x64?
I'm using a 32-bit Linux Mint so if I was to install 64 Bit would it allow me to compile for 64 bit versions?

The "Build Target" is also blank. I hover over the option with my mouse and nothing appears.

Thank you all!
Kind regards,
~Jason.
infratec
Always Here
Always Here
Posts: 7662
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: What .Extension do I use for Linux? How do I compile 64

Post by infratec »

Hi Conch,

Linux programs from itself has no extension.
So the best way is to use also no extension.
On the other hand, you can use any name and extension.
In Linux the decision of executable or not has nothing todo with the name,
it only depends on the executable flag. (x)

On a 32bit linux, you can only compile 32bit programs.
On a 64bit linux you can compile both, but...
Without installing additional libraries you can not run 32bit programs on a 64bit linux.

The best solution is:
Use the fitting PB Version for your system.

If you have to provide also other versions, use a virtual machine and compile it inside the virtual machine :wink:

Bernd
User avatar
Conch
New User
New User
Posts: 3
Joined: Sat Apr 28, 2012 5:17 pm
Location: Bit Shift Island.
Contact:

Re: What .Extension do I use for Linux? How do I compile 64

Post by Conch »

infratec wrote:Hi Conch,

Linux programs from itself has no extension.
So the best way is to use also no extension.
On the other hand, you can use any name and extension.
In Linux the decision of executable or not has nothing todo with the name,
it only depends on the executable flag. (x)

On a 32bit linux, you can only compile 32bit programs.
On a 64bit linux you can compile both, but...
Without installing additional libraries you can not run 32bit programs on a 64bit linux.

The best solution is:
Use the fitting PB Version for your system.

If you have to provide also other versions, use a virtual machine and compile it inside the virtual machine :wink:

Bernd
Awesome, thanks for the quick reply Bernd! :)
I have a 64 bit processor in my laptop but it's got a low amount of RAM so I just choose 32 bit :)
I'm not very good with hardware but I hope to learn more.

I have a Windows 7 VM on VMWare Player so I'm hoping the applications I create will run stable in a VM rather than a full installation :)

Thank you for the fast response :D
Post Reply