[fixed]CD3D9Driver.cpp:2334 build error on MingW 3.4.5

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
mauriciobs
Posts: 3
Joined: Mon Oct 27, 2008 9:07 pm

[fixed]CD3D9Driver.cpp:2334 build error on MingW 3.4.5

Post by mauriciobs »

Hello :-)

I am getting the following build error when trying to build latest svn trunk on MingW 3.4.5 W32API 3.12:
CD3D9Driver.cpp:2334 call of overloaded 'string(HRESULT&)' is ambiguous
This happens because HRESULT is defined by the compiler as 'long'. If I typecast hr to int the code is compiled without errors, as follows:

os::Printer::log("Resetting failed due to unknown reason.", core::stringc((int)hr).c_str(), ELL_WARNING);

Could you please confirm if it is a bug?

Thanks and best regards,
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Hmm, MSVC seems to find the correct overload, but it shouldn't hurt to change this one.
Post Reply