Tag Archives: errors

errors , bugs and how to fix this

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.

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:

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:

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… Read More »