Publishing c++ programs

I have made some c++ programs in the past and I would like to share them publicly. Is there any way to do this, like possibly through a website?

Thanks.
Last edited on
http://www.mediafire.com/

If it's a non-trivial open-source project:
http://sourceforge.net/
closed account (1yR4jE8b)
If you want to share the source code:

http://sourceforge.net

http://bitbucket.org

http://github.com

http://code.google.com

http://codeplex.org

EDIT: My personal preference is Github, then Bitbucket.
Last edited on
what about the actual compiled program?
That's more difficult, because you'd have to make sure that it was compiled for the user's machine. If it is, you can just distribute the .exe (along with whatever dlls etc it needs).
If you only want to distribute the executable, you won't be able to use most of the websites darkestfright mentioned (I don't know about bitbucket, and I'm not sure about CodePlex or Google Code, but SourceForge and GitHub only allow you to host closed-source projects if you pay). You can either get cheap (or free*) web hosting and host your executables on your own website for download, or put them on a file upload website (mediafire is probably the best of these) and just send people the link.

* 000webhost and byethost (byet, not byte, I don't know why) are the only ones I know of, but I'm sure there are more. The only problem here is that you won't be able to store massive amounts of data, probably only a few hundred MB or even 1 GB (easily enough to store several reasonably sized projects, especially without the source code, but nowhere near enough for the average modern commercial video game).
How do I get my .cpp into a .exe file?
By using a compiler...?
I'm sorry. I'm new to this kinda stuff (not c++). Can you please explain that?
I thought you made some C++ programs before? If you ever actually executed them, then that means you've compiled them and therefore got an .exe file.
Where would I find the .exe?
Also, in xcode, is the compiled version the file under products? (If you use Xcode)
If you're on a Mac, then you'll only get Mac binaries unless you use a cross compiler. You can't execute them on any other operating systems.

Also, in xcode, is the compiled version the file under products?

If it has no extension, then it's probably the binary. Just execute it and see for yourself.
Last edited on
So I should rewrite my program on a windows compiler, i.e. visual basic or code::blocks?
You only need to recompile it with a compiler for Windows, you don't need to change the code unless you were using Mac-specific functions. There seems to be a MinGW port for Mac, so if you can get it to work, you can compile for Windows directly on a Mac.
Topic archived. No new replies allowed.