This isn't a bug. Ubuntu has setup GCC with "pie" flag enabled for some unknown reason, and this causes executable output to be tagged as shared library.
Use "-no-pie" with GCC when compiling.
If using Qt Creator / QMake add this to your project file
unix:QMAKE_LFLAGS += -no-pie
All will work fine after that, and your system will see your local GCC compiled executables tagged as "executable", and Nautilus or any other file browser will be able to run it via click as usual.
This isn't a bug. Ubuntu has setup GCC with "pie" flag enabled for some unknown reason, and this causes executable output to be tagged as shared library.
Use "-no-pie" with GCC when compiling.
If using Qt Creator / QMake add this to your project file
unix:QMAKE_LFLAGS += -no-pie
All will work fine after that, and your system will see your local GCC compiled executables tagged as "executable", and Nautilus or any other file browser will be able to run it via click as usual.
Source: /stackoverflow. com/questions/ 45329372/ ubuntu- recognizes- executable- as-shared- library- and-wont- run-it- by-clicking
https:/