Ubuntu 19.04 created executable doesnt work on Ubuntu 16.04

Linux specific forum
arma
User
User
Posts: 57
Joined: Sun Jul 24, 2016 11:54 pm

Ubuntu 19.04 created executable doesnt work on Ubuntu 16.04

Post by arma »

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!
arma
User
User
Posts: 57
Joined: Sun Jul 24, 2016 11:54 pm

Re: Ubuntu 19.04 created executable doesnt work on Ubuntu 16

Post by arma »

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..
:(
User avatar
mk-soft
Always Here
Always Here
Posts: 5335
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Ubuntu 19.04 created executable doesnt work on Ubuntu 16

Post by mk-soft »

Start program unter terminal and show output...

button1 is a testprogram
./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 / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Bitblazer
Enthusiast
Enthusiast
Posts: 733
Joined: Mon Apr 10, 2017 6:17 pm
Location: Germany
Contact:

Re: Ubuntu 19.04 created executable doesnt work on Ubuntu 16

Post by Bitblazer »

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.
webpage - discord chat links -> purebasic GPT4All
Post Reply