Problem with code
Posted: Sun Mar 30, 2008 10:27 pm
Im having ptobem with my code, and im getting these error. think its something to do with the class
i cant paste all my code because its 2 big but if any1 wants me to paste an specific piece of it that will b ok.
Thankyou for any help
Code: Select all
1>------ Build started: Project: LoadIrrFile_vc8, Configuration: Debug Win32 ------
1>Compiling...
1>main.cpp
1>c:\users\ollystac\desktop\irrlicht\include\masteventreceiver.cpp(36) : error C2011: 'MastEventReceiver' : 'class' type redefinition
1> c:\users\ollystac\desktop\irrlicht\include\masterevents.h(36) : see declaration of 'MastEventReceiver'
1>c:\users\ollystac\desktop\irrlicht\examples\15.loadirrfile\main.cpp(116) : error C2079: 'receiver' uses undefined class 'MastEventReceiver'
1>c:\users\ollystac\desktop\irrlicht\examples\15.loadirrfile\main.cpp(123) : error C2228: left of '.init' must have class/struct/union
1> type is 'int'
1>c:\users\ollystac\desktop\irrlicht\examples\15.loadirrfile\main.cpp(125) : error C2228: left of '.endEventProcess' must have class/struct/union
1> type is 'int'
1>c:\users\ollystac\desktop\irrlicht\examples\15.loadirrfile\main.cpp(128) : error C2664: 'irr::createDevice' : cannot convert parameter 7 from 'int *' to 'irr::IEventReceiver *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\users\ollystac\desktop\irrlicht\examples\15.loadirrfile\main.cpp(786) : warning C4244: '=' : conversion from 'irr::f32' to 'int', possible loss of data
1>c:\users\ollystac\desktop\irrlicht\examples\15.loadirrfile\main.cpp(787) : warning C4244: '=' : conversion from 'irr::f32' to 'int', possible loss of data
1>c:\users\ollystac\desktop\irrlicht\examples\15.loadirrfile\main.cpp(788) : warning C4244: '=' : conversion from 'irr::f32' to 'int', possible loss of data
1>c:\users\ollystac\desktop\irrlicht\examples\15.loadirrfile\main.cpp(801) : error C2228: left of '.keyDown' must have class/struct/union
1> type is 'int'
1>c:\users\ollystac\desktop\irrlicht\examples\15.loadirrfile\main.cpp(801) : error C2228: left of '.keyDown' must have class/struct/union
1> type is 'int'
1>c:\users\ollystac\desktop\irrlicht\examples\15.loadirrfile\main.cpp(821) : error C2228: left of '.keyDown' must have class/struct/union
1> type is 'int'
1>c:\users\ollystac\desktop\irrlicht\examples\15.loadirrfile\main.cpp(821) : error C2228: left of '.keyDown' must have class/struct/union
1> type is 'int'
1>c:\users\ollystac\desktop\irrlicht\examples\15.loadirrfile\main.cpp(841) : error C2228: left of '.keyDown' must have class/struct/union
1> type is 'int'
1>c:\users\ollystac\desktop\irrlicht\examples\15.loadirrfile\main.cpp(841) : error C2228: left of '.keyDown' must have class/struct/union
1> type is 'int'
1>c:\users\ollystac\desktop\irrlicht\examples\15.loadirrfile\main.cpp(861) : error C2228: left of '.keyDown' must have class/struct/union
1> type is 'int'
1>c:\users\ollystac\desktop\irrlicht\examples\15.loadirrfile\main.cpp(861) : error C2228: left of '.keyDown' must have class/struct/union
1> type is 'int'
1>c:\users\ollystac\desktop\irrlicht\examples\15.loadirrfile\main.cpp(881) : error C2228: left of '.keyDown' must have class/struct/union
1> type is 'int'
1>c:\users\ollystac\desktop\irrlicht\examples\15.loadirrfile\main.cpp(897) : error C2228: left of '.keyDown' must have class/struct/union
1> type is 'int'
1>c:\users\ollystac\desktop\irrlicht\examples\15.loadirrfile\main.cpp(906) : error C2228: left of '.keyDown' must have class/struct/union
1> type is 'int'
1>c:\users\ollystac\desktop\irrlicht\examples\15.loadirrfile\main.cpp(910) : error C2228: left of '.keyDown' must have class/struct/union
1> type is 'int'
1>c:\users\ollystac\desktop\irrlicht\examples\15.loadirrfile\main.cpp(915) : error C2228: left of '.keyDown' must have class/struct/union
1> type is 'int'
1>c:\users\ollystac\desktop\irrlicht\examples\15.loadirrfile\main.cpp(950) : warning C4244: '=' : conversion from 'irr::f32' to 'int', possible loss of data
1>c:\users\ollystac\desktop\irrlicht\examples\15.loadirrfile\main.cpp(951) : warning C4244: '=' : conversion from 'irr::f32' to 'int', possible loss of data
1>c:\users\ollystac\desktop\irrlicht\examples\15.loadirrfile\main.cpp(952) : warning C4244: '=' : conversion from 'irr::f32' to 'int', possible loss of data
1>c:\users\ollystac\desktop\irrlicht\examples\15.loadirrfile\main.cpp(2059) : warning C4244: 'initializing' : conversion from 'double' to 'float', possible loss of data
1>c:\users\ollystac\desktop\irrlicht\examples\15.loadirrfile\main.cpp(2085) : error C2228: left of '.startEventProcess' must have class/struct/union
1> type is 'int'
1>Build log was saved at "file://c:\Users\ollystac\Desktop\irrlicht\examples\15.LoadIrrFile\Debug\BuildLog.htm"
1>LoadIrrFile_vc8 - 19 error(s), 7 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========Thankyou for any help