no debugging symbols found when using gdb

Some Linux distributions don’t use the gdb style debugging symbols. (IIRC they prefer dwarf2.) In general, gcc and gdb will be in sync as to what kind of debugging symbols they use, and forcing a particular style will just cause problems; unless you know that you need something else, use just -g.

The CXX compiler identification is unknown

We are having trouble compiling a project using CMake (v2.8.12) under Windows 7 64Bit using Visual Studio 2012. CMake gives us the following errors. We already tried starting Cmake from the Visual Studio Command Line using admin rights. There seems to have been a similar bug in CMake 2.8.11: http://www.cmake.org/Bug/view.php?id=14440

Xcode 11.1: iostream’ file not found

I’m compiling from the command line, and none of the answers listed here (or elsewhere) worked for me. What does seem to work (so far) is to add the following to .profile or whatever script your terminal uses to start up: (zsh, csh, bash, etc.) You will probably have to change MacOSX10.15.sdk whenever you upgrade … Read more

c++ sizeof( string )

It isn’t clear from your example what ‘string’ is. If you have: then string is std::string, and sizeof(std::string) gives you the size of the class instance and its data members, not the length of the string. To get that, use: