GNOME Bugzilla – Bug 140419
Wrong tutorials
Last modified: 2004-12-22 21:47:04 UTC
In almost every tutorial there's a problem in every main.cc example; the file included is "*.h" instead of "*.cc", for example, in the Hello World tutorial, the file included in main.cc is "buttons.h", it should be "buttons.cc". This obviously leads to unferenced Class errors when trying to compile main.cc
Nonsense. You should not be #including .cc files. Just compile and link all .cc files instead of just compiling main.cc. All the examples are in the examples directory in the tarball, with Makefiles.
Sorry then, it's my fault, the tutorial didn't mention any linking and compiling the single cc leads to unreferenced main.