It will also build a 32-bit Windows app with no error, so it seems that the “syntax error” can not be anything in the source code. It must have something to do with the build settings, but I can’t see anything different between the settings for 32-bit and 64-bit other than that selection.
There is one #if TargetMacOS in my code, but there is no other #if target of any kind.
I have carefully checked all the Build Settings many times for invalid characters or duplicate names.
I haven’t changed anything, but now I’m getting a different error. Instead of a syntax error, I get an alert “Project Cannot Be Compiled, Duplicate project item (i.e. same name): OptimumVP”, but “OptimumVP” is nowhere in the Build Settings or in the Builds folder.
This recalls me something: search the build folder and delete what is inside, then try another build (do that at each compile).
I recall that some files were not deleted between builds (is this the error ?).
I forgot to ask - why are you moving the code to 64bit? Sine the WOW layer supports 32bit Windows apps, if you can’t compile it 64bit, and there is no specific memory or code reason to move it to 64bit, leave it at 32bit.
This is correct - on Windows, 32 bit apps are “Universal” and will run on both 32 and 64 bit flavors of the OS. Unless you are doing something very RAM heavy, there’s no need for 64 bit. 64 bit apps also have some build lmitations regarding the location of DLLs.