C and C++ notes / Errors

From Helpful
Revision as of 15:05, 23 May 2024 by Helpful (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to 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 — some half-sorted notes, not necessarily checked, not necessarily correct. Feel free to ignore, or tell me about it.


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