This article shows you the files that are generated when you compile a program in c ++ regardless of the platform and the development environment you are using. At this time if you're following my instructions, you are working under windows and the environment devc ++. This is not exclusionary, anyone seated on another platform or with another development environment can work in c ++ and files generated will be the same. Which files are generated when you compile a program in c ++?. Well the first thing is to say that when you believe source code (for example to create a new file in devc ++) are editing a file with extension .cpp is the extension with which any development environment saves it you to the location on your hard disk than your indicate you. In the event you use a plain text editor to perform the code (case of unix or linux platforms) own programmer is that saves the file with the extension. cpp. Therefore we will always have a .cpp file that will be where East source code and you will need to modify in the event that you want to change your program code.
This file by itself not only runs the application. When compile the compiler does is translate the code source .cpp code understandable by the computer. It translates it to code machine or code object. This file extension is. o. normally some most of the development do not show this file, perform this operation from translation of intermediate form. To obtain the file object, the compiler executes the same and generates an executable named file with extension. exe.
This .exe file is running the program. You do not you can view the source code from a file. exe. Therefore when making an application development companies that sell is the final .exe file, thus avoiding the copy of the code, since this is only editable if you have the initial file. cpp. In short, you'll always have a .cpp file that you will use to create code or modify it and by building an executable .exe file which is the final file will be generated in your program. You can run this file on any platform if you have programmed with standard libraries and you have not used any specific library operating system. To verify that this is so performs the following test: create a small program using c ++ saves the file generated in any location on the hard drive. Compilalo and run it with the options in your development environment, in our case with devC ++ go to the folder where you have saved and file and verifies that the .exe file has been generated opens (runs) the .exe file (by double clicking on him) to verify that your application has been generated. This .exe file will be your final program you can port to any computer. Leave me a comment on this topic if you have any doubt or frustration. I myself will answer.
This file by itself not only runs the application. When compile the compiler does is translate the code source .cpp code understandable by the computer. It translates it to code machine or code object. This file extension is. o. normally some most of the development do not show this file, perform this operation from translation of intermediate form. To obtain the file object, the compiler executes the same and generates an executable named file with extension. exe.
This .exe file is running the program. You do not you can view the source code from a file. exe. Therefore when making an application development companies that sell is the final .exe file, thus avoiding the copy of the code, since this is only editable if you have the initial file. cpp. In short, you'll always have a .cpp file that you will use to create code or modify it and by building an executable .exe file which is the final file will be generated in your program. You can run this file on any platform if you have programmed with standard libraries and you have not used any specific library operating system. To verify that this is so performs the following test: create a small program using c ++ saves the file generated in any location on the hard drive. Compilalo and run it with the options in your development environment, in our case with devC ++ go to the folder where you have saved and file and verifies that the .exe file has been generated opens (runs) the .exe file (by double clicking on him) to verify that your application has been generated. This .exe file will be your final program you can port to any computer. Leave me a comment on this topic if you have any doubt or frustration. I myself will answer.
Posted by: |