I need help making a .exe that runs a program! Please Help :'(
(I know it sounds stupid but please help!)
I do know Execute: -o executable [namehere].out [sourcename].c
This looks like the command to make source code into an object file which is what you do right before you compile it into an executable. Here is the FAQ for Mingw, but with out knowing what compiler you are using I can't be of more help then this: http://www.mingw.org/wiki/MinGWforFirstTimeUsers
You might be able to find a tutorial on the C/C++ toolchain somewhere on the internet that explains the generic chain of actions involved in creating a binary executable.
Im pretty sure he wants to compile some code hes been writting in his compiler into a .exe, so he can run it on any computer without needing his compiler. Correct me if im wrong
Let's say I have the Hello World program and I want to send it to one of my non-programmer friends. Then I could write it, compile it, upload it to rapidshare (or something) for my friend to download.
The problem would be that i'm running a linux machine and he's running windows. Therefore if I compiled the program, it wouldn't run on his computer.
Since he isn't a programmer he can't compile the source code.
So the solution would be for me to compile the program into a .exe and upload that. How do I compile directly to a .exe file?
it is trivial if you have ever used an external library and are familiar with linking, there is a great tutorial for cross compiling from linux to windows in codeblocks here http://forums.codeblocks.org/index.php/topic,3343.0.html