A friend asked me to help with this, and I'm not sure what's going on.
namespace { using TestString = const char* const; TestString STRING = "This is a string"; TestString EDIT_STRING = "Try to modify string"; }
"gpp -c" gives the following errors:
- test.cpp:3: error: expected nested-name-specifier before 'TestString'
- test.cpp:3: error: 'TestString' has not been declared
- test.cpp:3: error: expected `;' before '=' token
- test.cpp:3: error: expected unqualified-id before '=' token
- test.cpp:5: error: 'TestString' does not name a type
- test.cpp:6: error: 'TestString' does not name a type
The errors after line 3 make sense...they can't work unti line 3 does, and the bit on line 6 is expected to fail later in the test code. But what's going on with line 3?
Also, where are these header files for C++? I can't find them anywhere under /usr/include (and definitely not IN /usr/include)?
- array
- inttypes
- unordered_map
Thanks