nickypp
asked on
E2337 Only one of a set of overloaded functions can be "C" at line 146 -- Urgent help required!
Take a simple c++ script, with absolutely nothing in other than the following:
#include <windows>
#include <stdio.h>
#include <GL/glut.h>
#include <GL/gl.h>
int main( )
{
return 0;
}
RUnning Borland CBuilderX and I want to do some OpenGL using the Glut libraries v3.7
I complile it and get an error specifying " E2337 Only one of a set of overloaded functions can be "C" at line 146" .
I have looked this problem up, but nothing seems to work. Please help! How would I adjust the above code to work, because it is driving me NUTS!!!!!!
Thanks, Nick.
#include <windows>
#include <stdio.h>
#include <GL/glut.h>
#include <GL/gl.h>
int main( )
{
return 0;
}
RUnning Borland CBuilderX and I want to do some OpenGL using the Glut libraries v3.7
I complile it and get an error specifying " E2337 Only one of a set of overloaded functions can be "C" at line 146" .
I have looked this problem up, but nothing seems to work. Please help! How would I adjust the above code to work, because it is driving me NUTS!!!!!!
Thanks, Nick.
ASKER
Yeah, it still doesn't work even with the *.h. Same error! It is the Glut.h file which is the problem, but how do I go about solving the error?
What type of file is your code in?
Are you using a *.C file or a *.CPP file.
You should be using a *.CPP file.
Are you using a *.C file or a *.CPP file.
You should be using a *.CPP file.
ASKER
using a *.cpp file.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Also, I notice that your window header file does not have a *.h extension.
#include <windows>