ImportC: Should this compile?

Mike Parker aldacron at gmail.com
Sun Dec 19 04:13:41 UTC 2021


On Sunday, 19 December 2021 at 03:27:50 UTC, Tejas wrote:

> Oh wow, the executable gets named `stuff` if that's the first 
> file passed... always thought it would name it the same name as 
> that file which contained `main`

If the name of the file with `main` were used, you'd have to have 
a different default for libraries. Executables and libraries get 
the name of the first source file passed on the command line by 
default. This can be overridden with -of.


More information about the Digitalmars-d-learn mailing list