Question 2: How do I check the compiler's output for error messages?

Question

Grade: Education Subject: Support
Question 2: How do I check the compiler's output for error messages?
Asked by:
68 Viewed 68 Answers

Answer (68)

Best Answer
(335)
To check the compiler's output for error messages, use the `-v` flag (or `-v:all`) with your compiler (e.g., g++ or clang++). This will provide a detailed trace of the compilation process, highlighting the line number and the specific error message. Pay close attention to the error messages; they often point directly to the problem.