visuald icon indicating copy to clipboard operation
visuald copied to clipboard

Main function parameters must match one of the signatures

Open rikkimax opened this issue 1 year ago • 2 comments

User from Discord tried to build an example project and it resulted in an error.

https://github.com/dlang/visuald/blob/master/visuald/Templates/ProjectItems/VDProject/main.d#L14

image

Rename of main function worked.

rikkimax avatar Apr 12 '24 21:04 rikkimax

Fresh install of Visual Studio 2022 and Visual D 1.4.0-rc1, hit new project, x64, DMD+LDC enabled (no dialog options seemed to matter)

katastic avatar Apr 12 '24 21:04 katastic

Thanks for reporting. dmd 2.100 added this extra check, which is a false positive in this case. I'll rename the function to win_main.

rainers avatar Apr 13 '24 05:04 rainers