I have just now downloaded the C++ IDE and compiler Code Blocks to learn some programming (interested in pursuing a career out of it). Well I started with the simple "Hello, World!" program and it worked in pulling up the command prompt but I can't find or figure out how to use a linker? As in making it an executable file. When I look for it in the file that I saved it to it just opens up Code Blocks with the file. I apologize if this has been asked before but I did search it.
What makes the executable is the compiler the linker links other files and libraries. I suggest you just figure out the basics before worrying about linking.
I can't find or figure out how to use a linker? As in making it an executable file. When I look for it in the file that I saved it to it just opens up Code Blocks with the file. I apologize if this has been asked before but I did search it.
I am at a loss as to what you mean? Can you be more specific in your question.
As in making it an executable file. When I look for it in the file that I saved it to it just opens up Code Blocks with the file.
I think you are asking where the executable is created? If that's the question, then you can find the executable in the 'Bin' directory which will be inside your project's directory. Inside bin, there'll be again 2 more folders - 'Debug' and 'Release'. Either or both will contain exes depending upon whether you compiled in Debug or Release mode.
Thank you illusionist mirage, that was exactly what I was asking. I realize its a little premature to ask how to execute a simple "Hello World" program but I am trying to figure out how the Code Block program works too. However, clicking the bin file only flashes the command prompt. Could this be because of the return 0; statement?