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

**URL:** <https://discuss.ocaml.org/t/bytecode-executable-generated-in-linux-is-not-compatible-with-windows-64-bit/3368>\
**Category:** Community\
**Tags:** windows, ocamlmakefile, build\
**Created:** [February 19, 2019, 4:55pm UTC](https://discuss.ocaml.org/t/bytecode-executable-generated-in-linux-is-not-compatible-with-windows-64-bit/3368 "2019-02-19T16:55:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tie\_Cheng](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/tie_cheng/32/2076_2.png) [@Tie\_Cheng](https://discuss.ocaml.org/u/Tie_Cheng)\
**Post date:** [February 19, 2019, 4:55pm UTC](https://discuss.ocaml.org/t/bytecode-executable-generated-in-linux-is-not-compatible-with-windows-64-bit/3368/1 "2019-02-19T16:55:11Z")

</div>

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?
