Category Archives: Errors

C::B bad compiler selection.

Under codeblocks if you select a bad compiler, you got this error:

Click right under project and select Buil Options….Now select your compiler.

Posted in Errors. Tagged with .

warning: deprecated conversion from string constant to ‘char*’

I might encounter when I compile with code::blocks one C++ file.

You won’t get that error .

So , you need to make an explicit typecast:

Posted in Errors. Tagged with .

Error: validator required attribute “TYPE” not specified

It is a common error, especially when taken enter predefined scripts. For example scripts from Google Gadgets.

You need to use in the script this :

Posted in Errors. Tagged with .

error: ‘for’ loop initial declarations are only allowed in C99 mode

Some errors you might encounter when you compile with code::blocks.

The one of many reason is you have written a code like:

To solve this error , just write code like this:

Posted in Errors. Tagged with .

warning: implicit declaration of function …

Some errors you might encounter when you compile with code::blocks.

It seems that your header files have no prototype declared for some of the functions.

In this case the function itself is implicitly treated as the function prototype.

You need add some parentheses. If you code is like :

…then the code will be:

Posted in Errors. Tagged with .