The new beta version can directly invoke cl.exe and compile .cpp scripts without setting up a VC++ project. This is one of the prerequisites for a future 64 bit version with no lite-C compiler. Check it out!
*.cpp files in the Strategy folder do not appear in the drop-down list of scripts, and there is no Source\compile.bat file. Did it not make it into the current beta?
Check the zorro.exe file date, it should be from 12:56 today. I think the version number was not increased, so there is an older 2.49.1b from last week.
Re: C++ scripts
[Re: jcl]
#485975 05/18/2216:4105/18/2216:41
I think pressing the Edit button for filename.cpp attempts to open filename.c.
Also, are precompiled headers not supported? (Not a big deal.)
It would also be nice if there was a "[New C++ Script]" selection in the drop down, distinguished from "[New Lite-C Script]".
Lastly, the Help file links are not working from Notepad++ C++ out of the box, but I can fix this by changing Language to C. This could cause problems if i start writing C++ -only code, though (i.e. incompatible with C).
I might consider using Visual Studio directly to edit C++ files, even if in the Strategy folder. The intellisense works very well if you simply open up the Zorro Folder, and then from there open strategy files in subfolders. This might even be the best default behavior, to open a C++ file in Visual Studio from the Zorro folder root.
As a side note for Wine lovers, this version won't boot if visual c++ 2015+ is not installed. Use the embedded vc_redist.x6.exe or install through winetricks.
As a side note for Wine lovers, this version won't boot if visual c++ 2015+ is not installed. Use the embedded vc_redist.x6.exe or install through winetricks.
Or you can read the relevant part of the doc. I didn't. Shame on me.
Re: C++ scripts
[Re: jcl]
#486073 06/07/2214:0106/07/2214:01
While you're at testing .cpp scripts, please test them also with the new 64-bit Zorro in the Zorro64 folder of today's beta version. Let me know if you encounter any problem.