Common Coding Bugs
From enfascination
|  (→C++) |  (→C++) | ||
| Line 1: | Line 1: | ||
| + | Note: these diagnoses will tend towards being too narrow, and may have solutions that are more general | ||
| + | |||
| ==C++== | ==C++== | ||
|   /usr/libexec/gcc/PATH/4.0.1/ld: Undefined symbols: |   /usr/libexec/gcc/PATH/4.0.1/ld: Undefined symbols: | ||
| Line 7: | Line 9: | ||
| *if it is for a whole class, it could mean that in an abstract class, I didn't set a function declaration to 0 | *if it is for a whole class, it could mean that in an abstract class, I didn't set a function declaration to 0 | ||
| *if it is for a specific static field, it could mean that I forgot "ClassName::" on initializing it | *if it is for a specific static field, it could mean that I forgot "ClassName::" on initializing it | ||
| + | |||
| + |  020walker.cpp:311: error: a function-definition is not allowed here before '{' token | ||
| + |  020walker.cpp:332: error: expected `}' at end of input | ||
| + | *Missing closing curly bracket on an if-statement | ||
Revision as of 15:15, 3 June 2009
Note: these diagnoses will tend towards being too narrow, and may have solutions that are more general
C++
/usr/libexec/gcc/PATH/4.0.1/ld: Undefined symbols: Something collect2: ld returned 1 exit status make: *** [program] Error 1
- if it is for a whole class, it could mean that in an abstract class, I didn't set a function declaration to 0
- if it is for a specific static field, it could mean that I forgot "ClassName::" on initializing it
020walker.cpp:311: error: a function-definition is not allowed here before '{' token
020walker.cpp:332: error: expected `}' at end of input
- Missing closing curly bracket on an if-statement