Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Main function parameters must match one of the signatures #272

Open
rikkimax opened this issue Apr 12, 2024 · 2 comments
Open

Main function parameters must match one of the signatures #272

rikkimax opened this issue Apr 12, 2024 · 2 comments

Comments

@rikkimax
Copy link

rikkimax commented Apr 12, 2024

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.

@katastic
Copy link

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)

rainers added a commit to rainers/visuald that referenced this issue Apr 13, 2024
…ignatures

rename main to win_main in WindowsApp template
@rainers
Copy link
Member

rainers commented Apr 13, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants