Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 547
  • Last Modified:

"glut.h": E2337 Only one of a set of overloaded functions can be "C" at line 146 - IMMEDIATE 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;
}

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.
0
nickypp
Asked:
nickypp
1 Solution
 
bramsquadCommented:
i think the problem is in your header files

GL/glut.h

or

GL/gl.h

check line 146 in both of those files.

~b
0
 
nickyppAuthor Commented:
Yeah, but what am I checking for?
- Nick ;-)
0
 
cookreCommented:
I downloaded glut.h from here:
http://developer.apple.com/samplecode/glut/listing47.html
(There was no gl.h)

It compiled just fine, after adding the .h to the windows include
0
 
cookreCommented:
Where are you getting your include files from?
0
 
FeldsparCommented:
try moving the "#include <windows>" to after the other #includes
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now