I know there are already a few answers to this question but I can't seem to understand why I keep getting this error.
So here's the explanation: I have 64 bits machine in which I've installed Windows 7 x64. I am compiling my Code under GCC (CodeBlocks) on Windows without any problem AT ALL. Then I decided that my application has to be portable, and I decided to compile it under GCC on Linux. In my other 32bit machine the code is compiling without any problem. However, on my 64 bit machine, I decided to install Ubuntu as Wubi. Of course I have installed Wubi x64 version as well.
I installed Ubuntu successfully under Wubi, I installed all necessary stuff, but when I try to compile my project, I get in the very first line the error 'cpu you selected does not support x86-64 instruction set'. Ok, this sounds completely non sense to me, taking into account that I've installed Wubi x64, on Windows 7 x64, on a 64bits machine. So why the hell am I getting an error saying that my CPU does not support x86-64 instruction set?
Could it be JUST because I have installed WUBI instead of installing Ubuntu on root in a normal way? I really can't seem to get this thing.
Thank you very much
EDIT: Ok, somewhere in Codeblocks I found the option that was checked for "Pentium M" architectures. I've unchecked it and now I get several erros such as:
error: cast from void* to int loses precision.
For which reason should this happen ONLY on Linux and not on Windows?