Thanks, modoran. So, I take it that this file doesn't live anywhere in my VC distribution, and I need to download it?
And, regarding _MSC_VER: it looks like I need to check two macros: one to determine whether I'm building on a Windows platform, and another to determine whether I'm using MSVC. What would you (or anyone) suggest I use for these?
Thanks.
EDIT:
This seems to be working for me:
1 2 3 4 5 6 7 8 9 10
|
#ifdef _WIN32
#ifdef _MSC_VER
// #include "stdint_ISO_C9x.h"
#include <BaseTsd.h>
#else
#include <cstdint>
#endif
#else
#include <tr1/cstdint>
#endif
|
stdint_ISO_C9x.h is my copy of the file linked to above. Using BaseTsd.h instead, however, eliminates a bunch of niggling compiler warnings, so I may go with that.
Anyway, I think I'm getting closer, since the compiler isn't giving me any more warnings. I am getting a link error now, for an unresolved external "_WinMain@16." Am I omitting a library inclusion?
EDIT 2:
It just occurred to me that the above question is more of a Windows issue than a C/C++ issue. I'll post the question there.