After finishing a program, how do you create an executable?

I guess my question is, how does a programmer create their program into an executable file. I compile using Code Blocks and my OS is Windows 7. Is there a conversion process...or do I have to pack my program with the dll files I use? And is there a way to embed dll files into a program? Thanks for any feedback.
Last edited on
Once complied the program should already be a executable, you just need to find where you IDE puts them. All dll files should be in the directory that you start you executable in
Hello Angeljruiz!!! i am agree with your response....
Didn't know, thanks. The exe file won't work without any dll files though. Is there a way to embed dll files into an executable?
You have to recompile the dll into a static library (.lib i think) and then link it in I think. Im not sure honestly i usually just leave the dll as is
You can link statically, but that requires that you have a static version of the library you're using.
Alright thanks again. At least I know it can be done.
Usually the compiling process is followed by a linking process.
This linking stage takes the output from the compiler and joins it together with the various library files to make the complete executable program.

Depending on the actual compiler used, this entire process may be more or less seamless so that it is not obvious that this is taking place.
Ok so I have been messing around with the compiler trying to link files and what not and have found that I think I might have to link pictures associated with my program. The program works when I put the dll files in the same directory as my exe file but it does not show anything until I put the pictures inside the same directory. I just read this is static linking. How do I go about doing this?
as my exe file but it does not show anything until I put the pictures inside the same directory. I just read this is static linking.

Loading files at runtime has absolutely nothing to do with linking. Linking is the process of creating an executable out of object files generated by a compiler.

In order to load your pictures, you need to specify the correct path according to where they are located.
Topic archived. No new replies allowed.