How to compile and link simple application?

4544fa8d 4544fa8d at gmail.com
Mon Apr 8 18:47:42 UTC 2019


On Monday, 8 April 2019 at 18:41:00 UTC, Adam D. Ruppe wrote:
> Did you put your code inside a main() function?

I want to make constant with path to directory containing 
executable. This line is above main():
-----------------------------
const ROOT_DIR = dirName(thisExePath());
-----------------------------

This is not allowed? :O


More information about the Digitalmars-d-learn mailing list