C and C++ notes / Errors

From Helpful
Jump to: navigation, search
Notes related to C and C++

Note: Some notes describe behaviour common to most variants - for C mostly meaning C89 (and a bit of C99), unless mentioned otherwise.

This article/section is a stub — probably a pile of half-sorted notes, is not well-checked so may have incorrect bits. (Feel free to ignore, fix, or tell me)


Error: Jump to case label

Compilation error.


Typically caused by value declarations within case statements.

Either move them outside (or before the first case(verify)), or put that case's body in curly brackets (excluding the break?(verify)).


This seemed informative to me: http://forums.whirlpool.net.au/archive/1794875


field has incomplete type