glut question
im trying to use glut and found out that when i include stdlib, glut doesnt work because the complier says:
E:\Borland\BCC55\Bin\bcc32.exe main.cpp
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
main.cpp:
Error E2337 e:\borland\bcc55\include\GL\glut.h 146: Only one of a set of overloaded functions can be "C"
what the hell does that mean and what if i end up needing to use stdlib, how am i supposed to use it?
143
144 #if defined(_WIN32)
145 # ifndef GLUT_BUILDING_LIB
146 extern _CRTIMP void __cdecl exit(int);
147 # endif
148 #else
149 /* non-Win32 case. */
150 /* Define APIENTRY and CALLBACK to nothing if we aren't on 151 Win32. */
152 # define APIENTRY
153 # define GLUT_APIENTRY_DEFINED
154 # define CALLBACK
155 /* Define GLUTAPI and GLUTCALLBACK as below if we aren't on 156 Win32. */
157 # define GLUTAPI extern
158 # define GLUTCALLBACK
159 /* Prototype exit for the non-Win32 case (see above). */
160 extern void exit(int);
161 #endif
162
by the way, i just found out my lib is screwed up
i used implib from borland to make a glut32.lib out of glut32.dll but i get a whole bunch of -unresolved external "FuncktionName"- when i try to compile. Could anyone tell me where i could get newest glut lib for the borland compiler??
(there are couple of lines in glut.h that automatically links opengl lib files by the way)
[edited by - tyro on August 9, 2002 7:13:40 PM]
144 #if defined(_WIN32)
145 # ifndef GLUT_BUILDING_LIB
146 extern _CRTIMP void __cdecl exit(int);
147 # endif
148 #else
149 /* non-Win32 case. */
150 /* Define APIENTRY and CALLBACK to nothing if we aren't on 151 Win32. */
152 # define APIENTRY
153 # define GLUT_APIENTRY_DEFINED
154 # define CALLBACK
155 /* Define GLUTAPI and GLUTCALLBACK as below if we aren't on 156 Win32. */
157 # define GLUTAPI extern
158 # define GLUTCALLBACK
159 /* Prototype exit for the non-Win32 case (see above). */
160 extern void exit(int);
161 #endif
162
by the way, i just found out my lib is screwed up
i used implib from borland to make a glut32.lib out of glut32.dll but i get a whole bunch of -unresolved external "FuncktionName"- when i try to compile. Could anyone tell me where i could get newest glut lib for the borland compiler??
(there are couple of lines in glut.h that automatically links opengl lib files by the way)
[edited by - tyro on August 9, 2002 7:13:40 PM]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement