There's no way to convert a program, but as long as you use cross platform code (meaning, don't use the windows API!) such as an engine like Qt or WXWidgets to draw the windows, it can be compiled on any supporting operating system, thus, when you distribute the code (
), other people on those specific operating systems (such as Linux, Macs, FreeBSD, etc) can then compile and may upload the binary in their operating system's format, thus allowing you to distribute those binaries as well for ease of use.