TutorialsTutorials HomeDebuggingIntroductionGood Practices Compiler Errors Run-Time Errors Wrong Answers MPI Errors Utilities
FullDocument
Related InfoTotalviewDebugging Tools
|
Compiler ErrorsCompiler errors are by far the easiest to fix. The compiler usually gives you an unambiguous description of the error and a specific line number on which the error occurred. The only disconcerting thing is that often a single syntax error will generate literally hundreds of other compiler errors. This gives the impression the code is riddled with bugs when only a single typo is the problem. Error MessagesIBM SPFor dealing with xlf problems, see the xlf online User's Guide.
What Did You Change?A common place that compiler errors crop up is during code development when many modifications are being made during a short period of time. The best way to have good records of code modifications is to use revision control. Revision control packages such as RCS, SCCS, and CVS are available on all NERSC machines in the GNU module and should be used, particularly when multiple people are working on the same code. Both of these are extremely simple to learn. |
![]() |
Page last modified: Mon, 11 Jan 2010 21:29:11 GMT Page URL: http://www.nersc.gov/nusers/help/tutorials/debug/compiler_errors.php Web contact: webmaster@nersc.gov Computing questions: consult@nersc.gov Privacy and Security Notice |
![]() |