It could be possible with cross-compilation, but quick google reveals no results with Windows host (gcc/mingw) and FreeBSD target. The easiest way would be to install a FreeBSD virtual machine under VirtualBox and do a native build. Of course, first step would be to port your code to FreeBSD. Interfaces are completely different - you'll have less work if you have clean separation between interfaces and logic in your code.