2007-08-03

More Compiler Errors

In an the book related chaos, I forgot to announce that Loïc Corbasson just contributed a new error message to the GCC error messages and solutions list. This time, it is about the consequences of forgetting one of the SIGNAL and SLOT macros.

2 Comments:

At 2:57 PM, Blogger Tim said...

Good list. Just thought of one more very confusing thing I sometimes get that doesn't result in a specific compiler error.

Sometimes I get random error messages in a built in header file (e.g. < string>). It turns out it is because I have forgotten a final semicolon in one of my headers that is included before it. For example:

--Something.h--

#pragma once

class Something
{
...
} // <-- no semicolon

--Something.cpp--

#include "Something.h"
#include < string>

...

Results in error in < string>. This is often very confusing, and also a flaw in C's header system.

 
At 3:04 PM, Blogger Johan Thelin said...

Thanks tim, I'll add this to the list. I just have to ponder a bit on how to present it.

If you want your full name on the list, please mail me at e8johan, gmail. If you want to, I could place a link to a site of your choice as well.

 

Post a Comment

<< Home