[fixed]small things
Posted: Mon Mar 02, 2015 8:40 am
Should't
#pragma comment(lib, "Irrlicht.lib")
and
#pragma comment (lib, "irrKlang.lib")
be enclosed in #ifdef _MSC_VER instead of #ifdef _IRR_WINDOWS_ ?
In sound.cpp of example 21:
virtual const ik_c8* getFileName() { return file->getFileName().c_str(); }
instead of
virtual const ik_c8* getFileName() { return file->getFileName(); }
about swprintf:
i had problems with this when i compiled with gcc-TDM.
I could solve them by swapping the sequence of some headers
( meaning driverChoice.h on top of irrlicht.h ):
#include "driverChoice.h" // solves problem with TDM.
#include <irrlicht.h>
With other compilers ( e.g. from the mingw-w64 project ) i had no problems.
This is something i hate about C++.
In latest trunk there is swprintf_irr, which is the best solution right now.
#pragma comment(lib, "Irrlicht.lib")
and
#pragma comment (lib, "irrKlang.lib")
be enclosed in #ifdef _MSC_VER instead of #ifdef _IRR_WINDOWS_ ?
In sound.cpp of example 21:
virtual const ik_c8* getFileName() { return file->getFileName().c_str(); }
instead of
virtual const ik_c8* getFileName() { return file->getFileName(); }
about swprintf:
i had problems with this when i compiled with gcc-TDM.
I could solve them by swapping the sequence of some headers
( meaning driverChoice.h on top of irrlicht.h ):
#include "driverChoice.h" // solves problem with TDM.
#include <irrlicht.h>
With other compilers ( e.g. from the mingw-w64 project ) i had no problems.
This is something i hate about C++.
In latest trunk there is swprintf_irr, which is the best solution right now.