It is currently Wed Jul 24, 2019 9:53 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Ubuntu 19.04 created executable doesnt work on Ubuntu 16.04
PostPosted: Tue Jun 11, 2019 9:54 pm 
Offline
User
User

Joined: Sun Jul 24, 2016 11:54 pm
Posts: 38
Hello everybody,

If i compile any code on Ubuntu 19.04, my executable doesnt run on old Ubuntu 16.04.
I had the same problem few years ago, and the solution was to add "ImportC "-no-pie" : EndImport" at the beginning of my code...
But the same thing doesnt work this time now.
I think there is new way to do.

Can you help me please?

Thanks A LOT!


Top
 Profile  
Reply with quote  
 Post subject: Re: Ubuntu 19.04 created executable doesnt work on Ubuntu 16
PostPosted: Thu Jun 13, 2019 2:00 pm 
Offline
User
User

Joined: Sun Jul 24, 2016 11:54 pm
Posts: 38
I mean, If i create exacutable on Ubuntu 19.04, Exe file doesnt run on Ubuntu 16.04.
I think i need some code or i need to set some linker options..
:(


Top
 Profile  
Reply with quote  
 Post subject: Re: Ubuntu 19.04 created executable doesnt work on Ubuntu 16
PostPosted: Fri Jun 14, 2019 6:47 pm 
Offline
Addict
Addict
User avatar

Joined: Fri May 12, 2006 6:51 pm
Posts: 1770
Location: Germany
Start program unter terminal and show output...

button1 is a testprogram
Quote:
./button1: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by ./button1)
...


Install VM and compile program unter Ubuntu v16.04

_________________
My Projects ThreadToGUI / OOP-BaseClass / OOP-BaseClassDispatch / Event-Designer
PB v3.30 / v5.70 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace


Top
 Profile  
Reply with quote  
 Post subject: Re: Ubuntu 19.04 created executable doesnt work on Ubuntu 16
PostPosted: Fri Jun 14, 2019 10:28 pm 
Offline
Enthusiast
Enthusiast

Joined: Mon Apr 10, 2017 6:17 pm
Posts: 220
Location: Germany
Use LDD and strace to locate the exact problem, then solve it. Did you see and ignore any binding / linker warnings? Without more infos, it could be due to many reasons.

If i try to release a portable binary for linux (which is a big Don't do it in the linux world for good reasons), i compile it on the smallest possible version and take it to higher versions, not vice versa.


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

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 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