PDA

View Full Version : error c2661



sGupta
08-25-2010, 05:39 AM
Hi i m new to GLUI. While executing a code it gives following errors:

Error 15 error C2661: 'GLUI_Rollout::GLUI_Rollout' : no overloaded function takes 3 arguments c:\users\gs\downloads\101259382opengl-3dwindmill\opengl-3d风车\windmill\windmill\windmill.cpp 169 windmill

Error 16 error C2661: 'GLUI_RadioGroup::GLUI_RadioGroup' : no overloaded function takes 2 arguments c:\users\gs\downloads\101259382opengl-3dwindmill\opengl-3d风车\windmill\windmill\windmill.cpp 170 windmill
Error 17 error C2661: 'GLUI_RadioButton::GLUI_RadioButton' : no overloaded function takes 2 arguments c:\users\gs\downloads\101259382opengl-3dwindmill\opengl-3d风车\windmill\windmill\windmill.cpp 171 windmill

Error 18 error C2661: 'GLUI_RadioButton::GLUI_RadioButton' : no overloaded function takes 2 arguments c:\users\gs\downloads\101259382opengl-3dwindmill\opengl-3d风车\windmill\windmill\windmill.cpp 172 windmill

Error 19 error C2661: 'GLUI_RadioButton::GLUI_RadioButton' : no overloaded function takes 2 arguments c:\users\gs\downloads\101259382opengl-3dwindmill\opengl-3d风车\windmill\windmill\windmill.cpp 173 windmill

Error 20 error C2661: 'GLUI_Rollout::GLUI_Rollout' : no overloaded function takes 3 arguments c:\101259382opengl-3dwindmill\opengl-3d风车\windmill\windmill\windmill.cpp 175 windmill

Error 21 error C2661: 'GLUI_Checkbox::GLUI_Checkbox' : no overloaded function takes 5 arguments c:\opengl-3dwindmill\opengl-3d风车\windmill\windmill\windmill.cpp 176 windmill

Error 22 error C2664: 'GLUI_Separator::GLUI_Separator(const GLUI_Separator &)' : cannot convert parameter 1 from 'GLUI_Rollout *' to 'const GLUI_Separator &' c:\users\gs\downloads\101259382opengl-3dwindmill\opengl-3d风车\windmill\windmill\windmill.cpp 177 windmill

Error 23 error C2661: 'GLUI_StaticText::GLUI_StaticText' : no overloaded function takes 2 arguments c:\opengl-3dwindmill\opengl-3d风车\windmill\windmill\windmill.cpp 178 windmill

Error 24 error C2661: 'GLUI_Spinner::GLUI_Spinner' : no overloaded function takes 3 arguments c:\users\gs\downloads\101259382opengl-3dwindmill\opengl-3d风车\windmill\windmill\windmill.cpp 179 windmill

Error 25 error C2664: 'GLUI_Separator::GLUI_Separator(const GLUI_Separator &)' : cannot convert parameter 1 from 'GLUI_Rollout *' to 'const GLUI_Separator &' c:\users\gs\downloads\101259382opengl-3dwindmill\opengl-3d风车\windmill\windmill\windmill.cpp 181 windmill

Error 26 error C2661: 'GLUI_StaticText::GLUI_StaticText' : no overloaded function takes 2 arguments c:\users\gs\downloads\101259382opengl-3dwindmill\opengl-3d风车\windmill\windmill\windmill.cpp 182 windmill

Error 27 error C2661: 'GLUI_Spinner::GLUI_Spinner' : no overloaded function takes 3 arguments c:\opengl-3dwindmill\opengl-3d风车\windmill\windmill\windmill.cpp 183 windmill

Error 28 error C2661: 'GLUI_Rollout::GLUI_Rollout' : no overloaded function takes 3 arguments c:\users\gs\downloads\101259382opengl-3dwindmill\opengl-3d风车\windmill\windmill\windmill.cpp 195 windmill

Error 29 error C2661: 'GLUI_Spinner::GLUI_Spinner' : no overloaded function takes 3 arguments c:\users\gs\downloads\101259382opengl-3dwindmill\opengl-3d风车\windmill\windmill\windmill.cpp 198 windmill

Error 30 error C2661: 'GLUI_Spinner::GLUI_Spinner' : no overloaded function takes 3 arguments c:\opengl-3dwindmill\opengl-3d风车\windmill\windmill\windmill.cpp 202 windmill

Error 31 error C2661: 'GLUI_Spinner::GLUI_Spinner' : no overloaded function takes 3 arguments c:\opengl-3dwindmill\opengl-3d风车\windmill\windmill\windmill.cpp 206 windmill

i tried doing every thing i can do but didnt able to solve the problem.
Also i m linking GLU32.lib,glut32.lib,OPENGL32.lib,glui32.lib,Glaux .LIB
can some one plz help.
i m uploading my whole project here

http://www.4shared.com/file/BN8dggrC/windmill.html

thanks!

carsten neumann
08-25-2010, 03:58 PM
I don't know GLUI, but the compiler is complaining about the fact that you are passing the wrong number of arguments to the constructor.
Take a look at e.g. line 169 of your file windmill.cpp, I guess it creates an object of type GLUI_Rollout, but with the wrong number of arguments.
There also seems to be something strange going on with your source directories, the compiler apparently sees a windmill.cpp file in c:\opengl-23windmill\... and in c:\users\gs\downloads\... - perhaps it is a good idea to start with a fresh project file, your current one may contain leftovers from previous attempts to solve the problem?

PS: This is more of a general Windows development question, you may get better answers if you ask in a forum dedicated to those.

sidenelen
08-23-2011, 06:59 AM
i'm in trouble with this same c2661 error. anyone could help?