Closed est77 closed 3 years ago
I couldn't repro this using the latest revision built from source and building the program using the build.bat included in the example folder.
What platform are you building with? Can you provide more context about the commandline used to trigger these errors? (Are you attempting to include this module in your own code?) Are you sure Wiz is up-to-date?
the vwf example only builds with recent master revisions of the source, it might not build if you are attempting to use an older version like the current tagged releases on github, or some older from-source installation that doesn't include the compiler changes it depends on.
I am using linux. I used the build shell script in the vwf directory. My version of wiz is up to date with the main branch on the repo.
Thanks, the context about the platform was helpful. Spotted the issue. build.bat
was building main.wiz
(which is the correct entry point). but the equivalent build
bash script was incorrectly building vwf.wiz
directly, which fails because it depends on being imported from within a program code bank. This would also fail to generate a working nes rom by itself even if it were to compile, because it's only part of the program.
Hopefully that works!
Yes, I can confirm that works.
Excellent! Closing the issue, thanks for the report!
vwf.wiz:387: error:
const
declaration with initializer must be inside anin
statement vwf.wiz:388: error:const
declaration with initializer must be inside anin
statement