I just bought the book "Tricks of the Windows Game Programming Gurus" and I tried to test out the first code example, and unfortunately the author uses C...All of the headers are the .h ones and it seems to work fine except I'm getting errors from stdio.h:
And they point to function declarations like:In file included from C:/DEV-CPP/include/c++/cstdio:52,
from C:/DEV-CPP/include/c++/mingw32/bits/c++io.h:35,
from C:/DEV-CPP/include/c++/bits/fpos.h:44,
from C:/DEV-CPP/include/c++/iosfwd:46,
from C:/DEV-CPP/include/c++/ios:44,
from C:/DEV-CPP/include/c++/ostream:45,
from C:/DEV-CPP/include/c++/iostream:45,
from C:/DEV-CPP/include/c++/backward/iostream.h:32,
from E:/T3DGameR1/Source/T3DCHAP01/blackbox.cpp:12:
C:/DEV-CPP/include/stdio.h:216: type specifier omitted for parameter `
__gnuc_va_list'
C:/DEV-CPP/include/stdio.h:217: type specifier omitted for parameter `
__gnuc_va_list'
I've never had these errors before and can't seem to get rid of them...Code:int vfprintf (FILE*, const char*, __VALIST); int vprintf (const char*, __VALIST); int vsprintf (char*, const char*, __VALIST); int _vsnprintf (char*, size_t, const char*, __VALIST);
EDIT:
Well I got it to compile, but only by eliminating all included headers that included stdio.h, which was about half...this is insane how many headers he included that he didn't need...the only thing I sacrificed by removing them was sprintf() lol...
EDIT2:
I could still use an explanation on why I'm suddenly getting these errors...I really would like to use some other headers, but it wont let me
Oh I'm using Dev-C++ 4.9.8.1