c++.beta - Compiler crash if stdlib.h is not included
- Mike McCants (17/17) Aug 05 2007 dmc -c -v1 q.c
dmc -c -v1 q.c gives: --- errorlevel -2147483645 (which is x80000003) dmc -c -v2 q.c gives: scppn -v2 q.c Digital Mars C/C++ Compiler Version 8.50.3n ... and it works ok. A simple program fails: #include <stdio.h> void main(void) { long x; x = -2147483645; printf(" %lx\n", x); } But if I add #include <stdlib.h>, then it compiles ok. Mike McCants
Aug 05 2007