Cross-compile to run on Windows and to generate code for Linux?

On 18 August 2012 01:18, Thomas Stover <cts@thomasstover.com> wrote:

I think you answered your own question. The numeric constant prefix isn't supported in that version.

 

Better (rhetorical) question: If you have access to Ubuntu, why not just cross compile for 'doz instead of tolerate an IDE?



On Friday, August 17, 2012 2:36pm, "Dipanjan Das" <its.dipanjan.das@gmail.com> said:

Hi,
I can successfully compile the following piece of code using gcc 4.4.3 on Ubuntu 10.x platform.
int main()
{
int var = 0b100;
return 0;
}
But, it fails to compile by MinGW gcc 3.4.2 which by default ships with Developer C++ 4.9.9.2 IDE with the following error message:
"3:12 H:\Experiment\Shared\demo.c invalid suffix "b100" on integer constant"
Any idea?
--

Thanks & Regards,

Dipanjan



--

Thanks & Regards,

Dipanjan