Assert() not working in code::blocks

In code::blocks 12.11 the following code:

#include <iostream>
#include <cassert>
using namespace std;


int main()
{
int a=4;
assert(a==4);
return 0;
}

Gives the following error in the assert() Line:

In function 'int main()':|
error: converting to execution character set: Illegal byte sequence|

The same code works fine in Dev/C++

Any help wellcome!
Works fine for me. The error sounds like you have a foreign key somewhere in there.
OK thanks wou where right!

The problem was the following compiller options

-finput-charset=cp1253
-fexec-charset=cp737

I use for the Greek character set!

Thanks!
Topic archived. No new replies allowed.