Tag: debugging
All the articles with the tag "debugging".
-
How to Fix 'expression must have a constant value' in C++
Fix 'expression must have a constant value' (E0028) and C2131 in C++: array sizes from cin, case labels and std::array, with the vector and constexpr fixes.
-
How to Fix 'invalid conversion from const char* to char' in C++
Fix 'invalid conversion from const char* to char' and 'cannot convert' errors in C++: double quotes, strings and numbers, and pointers. GCC, Clang and MSVC.
-
How to Fix 'collect2: error: ld returned 1 exit status' in C++
Fix 'collect2: error: ld returned 1 exit status' in g++: find the real linker error above it, then fix undefined references, a missing main, multiple definitions or a locked .exe.
-
How to Fix 'terminate called after throwing an instance of' in C++
Fix 'terminate called after throwing an instance of' in C++: what std::out_of_range, std::invalid_argument and what() mean, the usual causes, and try/catch.