g++ without typecast

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This program will compile using gcc. But fails using g++ compiler ( we
need explicit type casting  here).

Is there any flag or anyother way thru which we could compile this
using g++ ( without explicit type cast )

#include <stdio.h>
int main()
{
     unsigned int addr=0xffff;
     int *ptr;
     ptr=addr;
     return 0;
}
--
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Assembler]     [Git]     [Kernel List]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [C Programming]     [Yosemite Campsites]     [Yosemite News]     [GCC Help]

  Powered by Linux