/////////////Irrlicht Definitions
IrrlichtDevice* device = 0;
video::IVideoDriver* driver = 0;
scene::ISceneManager* smgr = 0;
gui::IGUIEnvironment* guienv = 0;
The header is above anything except for the irrlicht, windows, stdio, and string headers.
Finally, in main, i define the three variables (device is declared in a header with a drawWindow function.)
driver = device->getVideoDriver();
smgr = device->getSceneManager();
guienv = device->getGUIEnvironment();
I compile and i get errors such as :
conflicting types for `int driver'
previous declaration as `irr::video::IVideoDriver*driver'
invalid conversion from `irr::video::IVideoDriver*' to `int'
ISO C++ forbids declaration of `smgr' with no type
conflicting types for `int smgr'
etc
etc
I am using dev c++ and the current engine version.
edit : also, if i move the declarations into main (ex. video::IVideoDriver* driver = ...); I get a windows error that says. OpAlphaStorm.exe(my prog) has generated errors and will be closed by windows (
![Evil or Very Mad :evil:](./images/smilies/icon_evil.gif)
Thanks in advance
~~ The Robomaniac