It is currently Sun May 31, 2020 1:38 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Create PB Executable = shared library
PostPosted: Tue Oct 23, 2018 2:45 pm 
Offline
Enthusiast
Enthusiast

Joined: Sat Apr 26, 2003 2:49 pm
Posts: 673
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


Top
 Profile  
Reply with quote  
 Post subject: Re: Create PB Executable = shared library
PostPosted: Tue Oct 23, 2018 5:06 pm 
Offline
Enthusiast
Enthusiast

Joined: Sat Apr 26, 2003 2:49 pm
Posts: 673
Import "-no-pie"
EndImport

i guess it will be fixed for the next release.


Top
 Profile  
Reply with quote  
 Post subject: Re: Create PB Executable = shared library
PostPosted: Tue Oct 23, 2018 5:12 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Wed Jun 25, 2014 5:25 pm
Posts: 412
Location: Germany
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:
ImportC "-no-pie" : EndImport ; This code line must be at the very top of your code

_________________
Image
Why OpenSource should have a license
PureBasic-CodeArchiv-Rebirth: Git-Repository / Download – Any help is welcome!
Manjaro Xfce x64 (Main system) :: WindowsXP/Xubuntu x86 (VirtualBox) :: PureBasic (Linux: x86/x64, Windows: x86) :: All are up to date


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye