Link to home
Start Free TrialLog in
Avatar of nickypp
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.
Avatar of Axter
Axter
Flag of United States of America image

It should tell you what file it's referring to at line 146.

Also, I notice that your window header file does not have a *.h extension.
#include <windows>

Avatar of nickypp
nickypp

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.
Avatar of nickypp

ASKER

using a *.cpp file.
ASKER CERTIFIED SOLUTION
Avatar of mokule
mokule
Flag of Poland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial