Can't run executable built with Dub - OS thinks it is shared library
elronnd at elronnd.net
Wed Oct 27 03:39:53 UTC 2021
On Tuesday, 26 October 2021 at 15:13:02 UTC, Stephen C wrote:
> I recently upgraded my Linux OS and installed DMD 2.098. But
> now when I build my project with Dub, I can't run the binary by
> clicking the binary's icon because the OS thinks it is a shared
> library. I can still run it from the command line though.
> I read that this might be fixed by not using -fPIE, so I
> removed that flag from dmd.conf. But then my program won't even
Ensure that you have a file named 'app.d' in your source/src
Alternately, set "targetType": "executable" in your dub.json.
Alternately, fix whatever graphical thingy you are using that
lets you click on file names.
More information about the Digitalmars-d