Bytecode executable generated in Linux is not compatible with Windows 64 bit

Hello,

I have a project in OCaml. It is used mainly in a Linux environment, but it happens that I need to run the executable generated in a Windows server.

I remember vaguely that, several years ago, I could compile the project by ocamlc and generate project.exe in Linux, and copy paste project.exe to Windows server and it worked.

Today, I repeat this process to the same server (Windows Server 2012, 64 bit), running project.exe in Windows server gave me an error Unsupported 16-Bit Application: This version of C:\project.exe is not compatible with the version of Windows you are using. Check your computer's system information and then contact the software publisher.

Could anyone tell me if this approach is wrong? How to fix this?