I did a test. I built the same program with gcc5 and gcc6, then I compared the output of "readelf -a". It happens that Nautilus is right. gcc on Ubuntu 16.10 creates a shared library by default instead of an executable (the Type field in the ELF header is different).
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1635376 Title: double-clicking on an executable created with gcc6 opens an error message To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/1635376/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs