When you compile it, you create an .exe file somewhere (depends on your compiler). You might need to statically link your libraries and dependencies though.
You can send the user the installer for your runtime redistributable dependencies. (In VC++ at least that's what I do.) I never figured out how to link my dependencies into the prog though.
how do i turn it into a .exe or something similar so i can distribute?
Correct me if I'm wrong, you only want a .exe file so that it can run anywhere and everywhere without installing the programming language used in your code?
I'm new in programming and I am interested how to do it. Is it possible?
Thanks.
if you can't find the exe create one yourself using the command line.
compile all class files using, g++ -c *.cpp
this turns all class files into object files( ".o" files ), then link all the files along with your main: g++ *.o Main.cpp
Main.cpp being whatever your main is called, this produces an executable called a.exe which you can rename. or you can give the name you want when compiling using the output flag.
I've made the .exe that's not hard. all you do is compile it to make sure it works than you run the program. When I run it it makes it into an exe save where I saved the Source code. (Where it asks you to save when you compile it).