Create PB Executable = shared library

Linux specific forum
Justin
Addict
Addict
Posts: 829
Joined: Sat Apr 26, 2003 2:49 pm

Create PB Executable = shared library

Post by Justin »

This has to be very basic but when i create an exe in linux with no extension in xfce it is recognized as a shared library. i can not execute it double clicking on it, i messed around with the default launchers and now is associated with some useless launchers that can not be removed, they are greyed out(tipical linux)

I can only execute it via the terminal, so how to fix this stupid thing :D
Justin
Addict
Addict
Posts: 829
Joined: Sat Apr 26, 2003 2:49 pm

Re: Create PB Executable = shared library

Post by Justin »

Import "-no-pie"
EndImport

i guess it will be fixed for the next release.
User avatar
Sicro
Enthusiast
Enthusiast
Posts: 538
Joined: Wed Jun 25, 2014 5:25 pm
Location: Germany
Contact:

Re: Create PB Executable = shared library

Post by Sicro »

This is a known bug. It was fixed in PB 5.70 Beta 2.

If you are using an older version of PB, you can fix the bug yourself as follows:

Code: Select all

ImportC "-no-pie" : EndImport ; This code line must be at the very top of your code
Image
Why OpenSource should have a license :: PB-CodeArchiv-Rebirth :: Pleasant-Dark (syntax color scheme) :: RegEx-Engine (compiles RegExes to NFA/DFA)
Manjaro Xfce x64 (Main system) :: Windows 10 Home (VirtualBox) :: Newest PureBasic version
Post Reply