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.
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
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
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.