Program Completed, How To Run It?

I created a C++ program using the IDE codeblocks for the console on Windows 7. Is there a way to run this as a stand-alone executable? As of right now, if I try to take it out of the current bin folder ( which I had to copy and paste a cygwin.dll file into with it for some reason for it to even work ) it doesn't work. Is it even possible to MAKE a stand alone executable? For instance, If I wanted to write my program to a CD, and have it run on another windows 7 computer from the CD?
Bump :(
Do you know what compiler you are using?
If you had to have 'cygwin.dll' in the same directory as the executable for it to run, then you are using gcc to compile you code. Stop that, Code::Blocks gets along just fine with Microsoft's compiler 'cl.exe'. You just need to install the corresponding run-time environment (version of MSCRT) on what ever machine you are transferring it to.

Here is 2010 which Code::Blocks supports OOB: http://go.microsoft.com/?linkid=9709949

2010 MSCRT (x86):
http://www.microsoft.com/en-us/download/details.aspx?id=5555

2010 MSCRT (x64):
http://www.microsoft.com/en-us/download/details.aspx?id=13523

Also handy is the Windows 7 SDK:
http://www.microsoft.com/en-us/download/details.aspx?id=8279
I don't see a 'cl.exe' in the compiler settings for codeblocks at all
I tried downloading the link provided for OOB, but It gives me an error saying visual studio can't run in compatibility mode or something? I don't even have visual studio!!
I guess i'm at a complete loss on what to do.
hi i am a beginner for a c programme now i came chapter to a pointers although i am good but still i have doubt in pointer that is ptr is shows error in turbo c++ compiler how to solve please help me i am at desperate
Sheera, would probably help if you explained more lol.
Sheera, the issue is that Turbo C++ is... well, outdated. By a lot. We'll try to help where we can, but you'd be better-off trying to find a dedicated Turbo C++ website, if any still exist.
@ OP: What do you mean "... or something"? Try to run it again and copy + paste the error. cl is the name of Microsoft's compiler, this is the part of the "Visual Studio" tool chain that actually compiles your code. OOB stands for "Out of Box", when you start a new project in Code::Blocks there is a drop down menu that asks you what compiler you want to use. Microsoft Visual Studio 2010 is one of the options in that menu. You are able to run this without Code::Blocks but I don't recommend it.
@ sheera: Your question has nothing to do with the topic of this thread. Please make your own thread and do not hijack someone else who is getting help on their topic.

When you do make your own thread, ask a real question and provide enough information for us to help you.
In Code::Blocks , with the project you are working on opened, press f9;
That compiles the current project and runs it.
After that , in you project folder there should be a bin folder , with a debug folder inside.
In there you will find the standalone(except if you are using extern libraries like sdl).
Topic archived. No new replies allowed.