Hey, I'm using Dev-CPP and trying to compile an Irrlicht project. It compiles fine before, but now I am trying to use std::vector, and I am getting a compiler error.
It seems that std::vector includes a file called unknwn.h which has this line:
typedef IUnknown *LPUNKNOWN;
this seems to be conflicting with IrrLicht's
class IUnknown{ ... }; in IUnknown.h
Has anyone used std::vector with IrrLicht? Am I doing something wrong?
Thanks,
-Keless
trying to use std::Vector
okay, I've explicitly declared all of my irr:: spaced objects (no more 'using namespace irr; ),
my first test was to #include <windows.h> and use
INT WINAPI WinMain( HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT )
instead of
int main()
and-- it compiles! but it _crashes! Oh no.
I do get some output, maybe you know what it means?:
uncompress(): hello, hello!
gzread(): hello, hello!
gzgets() after gzseek: hello!
inflate(): hello, hello!
large_inflate(): OK
after inflateSync(): hello, hello!
inflate with dictionary: hello, hello!
((then: "This program has performed an illegal operation.. yada yada"))
Looks like IRR is starting up, setting its FileSystem? But whats causing the crash? (I am in DevCpp, running IRR 4.0)
my first test was to #include <windows.h> and use
INT WINAPI WinMain( HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT )
instead of
int main()
and-- it compiles! but it _crashes! Oh no.
I do get some output, maybe you know what it means?:
uncompress(): hello, hello!
gzread(): hello, hello!
gzgets() after gzseek: hello!
inflate(): hello, hello!
large_inflate(): OK
after inflateSync(): hello, hello!
inflate with dictionary: hello, hello!
((then: "This program has performed an illegal operation.. yada yada"))
Looks like IRR is starting up, setting its FileSystem? But whats causing the crash? (I am in DevCpp, running IRR 4.0)