[SOLVED]Dev c++ compile problem
Posted: Wed Mar 08, 2006 10:00 am
i have set everything up perfectly, put all 3 librarys out of the devc++ folder. Included the whole include folder. Im using version 3.0. I even copied and pasted the hello world code from the example at the bottom of the set up irrlicht with devc++ page. Now, when i go to compile it comes up with these errors:
C:/Documents and Settings/Alfie/Desktop/irrlicht 3.0/include/vector2d.h: In member function `void irr::core::vector2d<T>::rotateBy(irr::f64, const irr::core::vector2d<T>&)':
C:/Documents and Settings/Alfie/Desktop/irrlicht 3.0/include/vector2d.h:93: error: `gradPI2' undeclared (first use this function)
C:/Documents and Settings/Alfie/Desktop/irrlicht 3.0/include/vector2d.h:93: error: (Each undeclared identifier is reported only once for each function it appears in.)
C:/Documents and Settings/Alfie/Desktop/irrlicht 3.0/include/vector2d.h: In member function `irr::core::vector2d<T>& irr::core::vector2d<T>::normalize()':
C:/Documents and Settings/Alfie/Desktop/irrlicht 3.0/include/vector2d.h:109: error: there are no arguments to `getLenght' that depend on a template parameter, so a declaration of `getLenght' must be available
C:/Documents and Settings/Alfie/Desktop/irrlicht 3.0/include/vector2d.h:109: error: (if you use `-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
In file included from C:/Documents and Settings/Alfie/Desktop/irrlicht 3.0/include/irrlicht.h:67,
from Roughsource.cpp:4:
C:/Documents and Settings/Alfie/Desktop/irrlicht 3.0/include/line2d.h: In member function `irr::core::vector2d<T> irr::core::line2d<T>::getUnitVector()':
C:/Documents and Settings/Alfie/Desktop/irrlicht 3.0/include/line2d.h:70: error: there are no arguments to `getLenght' that depend on a template parameter, so a declaration of `getLenght' must be available
Roughsource.cpp: In function `int main()':
Roughsource.cpp:17: error: `EDT_SOFTWARE' undeclared (first use this function)
Roughsource.cpp:32: error: no matching function for call to `irr::gui::IGUIEnvironment::addStaticText(const wchar_t[51], irr::core::rect<irr::s32>, bool, bool, int, int)'
C:/Documents and Settings/Alfie/Desktop/irrlicht 3.0/include/IGUIEnvironment.h:135: note: candidates are: virtual irr::gui::IGUIElement* irr::gui::IGUIEnvironment::addStaticText(const wchar_t*, bool, const irr::core::rect<irr::s32>&, irr::gui::IGUIElement*, irr::s32)
make.exe: *** [Roughsource.o] Error 1
i know the code is right. i knwo the librarys are right, i know the include file is right. so what is goin on? please help
C:/Documents and Settings/Alfie/Desktop/irrlicht 3.0/include/vector2d.h: In member function `void irr::core::vector2d<T>::rotateBy(irr::f64, const irr::core::vector2d<T>&)':
C:/Documents and Settings/Alfie/Desktop/irrlicht 3.0/include/vector2d.h:93: error: `gradPI2' undeclared (first use this function)
C:/Documents and Settings/Alfie/Desktop/irrlicht 3.0/include/vector2d.h:93: error: (Each undeclared identifier is reported only once for each function it appears in.)
C:/Documents and Settings/Alfie/Desktop/irrlicht 3.0/include/vector2d.h: In member function `irr::core::vector2d<T>& irr::core::vector2d<T>::normalize()':
C:/Documents and Settings/Alfie/Desktop/irrlicht 3.0/include/vector2d.h:109: error: there are no arguments to `getLenght' that depend on a template parameter, so a declaration of `getLenght' must be available
C:/Documents and Settings/Alfie/Desktop/irrlicht 3.0/include/vector2d.h:109: error: (if you use `-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
In file included from C:/Documents and Settings/Alfie/Desktop/irrlicht 3.0/include/irrlicht.h:67,
from Roughsource.cpp:4:
C:/Documents and Settings/Alfie/Desktop/irrlicht 3.0/include/line2d.h: In member function `irr::core::vector2d<T> irr::core::line2d<T>::getUnitVector()':
C:/Documents and Settings/Alfie/Desktop/irrlicht 3.0/include/line2d.h:70: error: there are no arguments to `getLenght' that depend on a template parameter, so a declaration of `getLenght' must be available
Roughsource.cpp: In function `int main()':
Roughsource.cpp:17: error: `EDT_SOFTWARE' undeclared (first use this function)
Roughsource.cpp:32: error: no matching function for call to `irr::gui::IGUIEnvironment::addStaticText(const wchar_t[51], irr::core::rect<irr::s32>, bool, bool, int, int)'
C:/Documents and Settings/Alfie/Desktop/irrlicht 3.0/include/IGUIEnvironment.h:135: note: candidates are: virtual irr::gui::IGUIElement* irr::gui::IGUIEnvironment::addStaticText(const wchar_t*, bool, const irr::core::rect<irr::s32>&, irr::gui::IGUIElement*, irr::s32)
make.exe: *** [Roughsource.o] Error 1
i know the code is right. i knwo the librarys are right, i know the include file is right. so what is goin on? please help