| View previous topic :: View next topic |
| Author |
Message |
Rikhard Guest
|
Posted: Wed Dec 13, 2006 11:31 pm Post subject: Error in Compile |
|
|
I am trying to compile OpenGL code using the glut library and I am
recieving the following error.
Error E2337 c:\Borland\Bcc55\include\GL/glut.h 146: Only one of a set of
overloaded functions can be "C" *** 1 errors in Compile ***
Anyone know how to fix this error, or know where I can get help with
Compiling OpenGL code? |
|
| Back to top |
|
 |
Thomas Maeder [TeamB] Guest
|
Posted: Wed Dec 13, 2006 11:49 pm Post subject: Re: Error in Compile |
|
|
"Rikhard" <rikhardw (AT) msn (DOT) com> writes:
| Quote: | I am trying to compile OpenGL code using the glut library and I am
recieving the following error.
Error E2337 c:\Borland\Bcc55\include\GL/glut.h 146: Only one of a
set of overloaded functions can be "C" *** 1 errors in Compile ***
Anyone know how to fix this error, or know where I can get help with
Compiling OpenGL code?
|
The error message says that different overloads of a function name are
declared extern "C", e.g.:
etern "C" {
void f();
double f(int);
}
If that's indeed the case, the cure is to not to declare such
overloads. |
|
| Back to top |
|
 |
|