problems with exporting

Hello,
I’m using cocos2d-x in c++ with Linux.
I’ve compiled a basic game and I want to run it on windows and linux without releasing the original code.
How can I export it in two formats in order to execute it in windows and linux?