Me, g++, C++ and the segfaults.

Body

3 years ago, Alaa offered to teach me C++ to make a better mind out of my C overloaded mind.

Next day when I was practicing, I wrote my 1st C++ code and sure it had syntax errors, The result was a compiler crash.

These days I'm trying to implement something in C++, And yes, It had errors too. The result was also a crash

mohammed@uniball:~/projects/spell$ g++ -c morph.cc `pkg-config glibmm-2.4 --cflags`
In file included from morph.hh:4,
                 from morph.cc:6:
word.hh:5:18: error: glibmh: No such file or directory
word.hh:10: error: expected `)' before ‘,’ token
word.hh:13: error: ‘std::ustring’ has not been declared
word.hh:13: error: ‘std::ustring’ has not been declared
word.hh:14: error: ‘std::ustring’ has not been declared
word.hh:14: error: ‘std::ustring’ has not been declared
word.hh:14: error: ‘std::ustring’ has not been declared
word.hh:15: error: ‘ustring’ in namespace ‘std’ does not name a type
word.hh:16: error: ‘std::ustring’ has not been declared
word.hh:17: error: ‘ustring’ in namespace ‘std’ does not name a type
word.hh:18: error: ‘std::ustring’ has not been declared
word.hh:19: error: ‘ustring’ in namespace ‘std’ does not name a type
word.hh:20: error: ‘std::ustring’ has not been declared
word.hh:24: error: ‘ustring’ in namespace ‘std’ does not name a type
word.hh:25: error: ‘ustring’ in namespace ‘std’ does not name a type
word.hh:26: error: ‘ustring’ in namespace ‘std’ does not name a type
word.hh:32: error: invalid use of ‘::’
word.hh:34: error: ‘std::ustring’ has not been declared
word.hh:34: error: ‘std::ustring’ has not been declared
word.hh:35: error: ‘std::ustring’ has not been declared
word.hh:35: error: ‘std::ustring’ has not been declared
word.hh:35: error: ‘std::ustring’ has not been declared
g++: Internal error: Segmentation fault (program cc1plus)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
For Debian GNU/Linux specific bug reporting instructions, see
<URL:file:///usr/share/doc/gcc-4.0/README.Bugs>.

Why do I have the feeling that I should stick to C only ? ;-)

Add new comment

The content of this field is kept private and will not be shown publicly.