help compiling for 64bit linux

  • mitch8128
    29th May 2019 Member 0 Permalink

    i have no trouble compiling 64bit for linux but it compiles as a "shared library (application/x-sharedlib)"

    how do i get it compile as an executable, also the "allow executing file as program" is checked i dont know what im missing.

    im using ubuntu 19.04

    sorry if its a simple fix, im new to linux.

    thank you in advance

  • jacob1
    29th May 2019 Developer 0 Permalink
    You should still be able to run it from the command line, the file manager is just misinterpreting what type of file it is (a shared library, instead of an executable). Recent versions of gcc enable some flag by default that causes it to not run from a file manager, it's really annoying and affected the official version too for a while.

    If you are compiling from the command line you can add these two flags to fix it and make it be recognized as an executable again:
    export CCFLAGS="-fno-pie"
    export LINKFLAGS="-no-pie"

    if you're using some IDE, add them in there instead.
  • LBPHacker
    29th May 2019 Developer 0 Permalink

    Or just run it once, let it install itself with a FreeDesktop launcher (Ctrl+I) and not care too much about the file manager not recognising it. That's what I do.