Well, if different warning settings are used, then you can't expect the code to be warning free.
But actually this particular warning (globals) could easily be fixed by changing the type of value (to float). The reinterpret_casts are a relict from a earlier misinterpretation of a particular ESM record.
Master won't compile
Re: Master won't compile
Right, I fixed most (if not all) of the warnings when building on windows. Git decided to merge in some unrelated things into it though, so if it conflicts perhaps a cherry-pick is the way to go.
Re: Master won't compile
Since you are testing on windows, there's a slight chance music and sound will not be working at all on windows (if I failed with some filesystem conversions), probably not though. If it is the case though, it's better to find out sooner rather than later.
Re: Master won't compile
Sorry, way too many changes all mixed together, of which I am not even sure I understand them all (including some stuff that definitely should not be included and some that are definitely not correct). A merge is out of question, but I am not very enthusiastic about cherry-picking either.
I think most of these warnings could be better addressed by adjusting the MSVC warning level globally (in the cmake script). Especially all those silly float->double warnings require tons of needless code changes. Can't we just disable them?
I think most of these warnings could be better addressed by adjusting the MSVC warning level globally (in the cmake script). Especially all those silly float->double warnings require tons of needless code changes. Can't we just disable them?
Re: Master won't compile
I'll add some warning disables instead then, new commit up soon.Zini wrote:Especially all those silly float->double warnings require tons of needless code changes. Can't we just disable them?
On another note it crashed when I tried to run it;
Code: Select all
ERROR: NIFFile Error: Unknown record type NiStencilProperty
File: meshes\sky_night_01.nif
Re: Master won't compile
I am getting these linker errors with OpenEngine:
3>renderer.obj : error LNK2019: unresolved external symbol "public: void __thiscall OEngine::Render::Fader::update(float)" (?update@Fader@Render@OEngine@@QAEXM@Z) referenced in function "public: void __thiscall OEngine::Render::OgreRenderer::update(float)" (?update@OgreRenderer@Render@OEngine@@QAEXM@Z)
3>renderer.obj : error LNK2019: unresolved external symbol "public: __thiscall OEngine::Render::Fader::Fader(void)" (??0Fader@Render@OEngine@@QAE@XZ) referenced in function "public: void __thiscall OEngine::Render::OgreRenderer::createScene(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,float,float)" (?createScene@OgreRenderer@Render@OEngine@@QAEXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MM@Z)
3>renderer.obj : error LNK2019: unresolved external symbol "public: void __thiscall OEngine::Render::Fader::update(float)" (?update@Fader@Render@OEngine@@QAEXM@Z) referenced in function "public: void __thiscall OEngine::Render::OgreRenderer::update(float)" (?update@OgreRenderer@Render@OEngine@@QAEXM@Z)
3>renderer.obj : error LNK2019: unresolved external symbol "public: __thiscall OEngine::Render::Fader::Fader(void)" (??0Fader@Render@OEngine@@QAE@XZ) referenced in function "public: void __thiscall OEngine::Render::OgreRenderer::createScene(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,float,float)" (?createScene@OgreRenderer@Render@OEngine@@QAEXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MM@Z)
Re: Master won't compile
Did you miss a submodule update or something, seeing as the errors seem focused on OpenEngine?
Re: Master won't compile
Its the newest OpenEngine that is causing the problem for me. Using an older openmw paired with an older openengine works fine.
Re: Master won't compile
Nevermind
EDIT: Got the latest openengine working, and along with gus's windows fix I should be good now.
EDIT: Got the latest openengine working, and along with gus's windows fix I should be good now.