When converting a source code file into an executable file, it must go through the preprocessor, then the compiler, and finally the linker. Each step may generate its own kind of error messages. Imagine that a programmer typed "isteam" instead of "iostream" in the #include directive when typing in the C++ source code file shown in Question #3. When the programmer later saved the file and then entered "g++ myCopy.cpp" on the command line, the following error messages appeared on the screen (the line numbers on the far left were added for reference): #1 - myCopy.cpp:1:19: isteam: No such file or directory #2 - myCopy.cpp: In function `int main()': #3 - myCopy.cpp:9: error: `cin' undeclared (first use this function) #4 - myCopy.cpp:13: error: `cout' undeclared (first use this function) Answer each of the questions below concerning these error messages. Which line or lines (if any) were printed by a the preprocessor? b the compiler? c the linker?
Get Answers For Free
Most questions answered within 1 hours.