Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

"glut.h": E2337 Only one of a set of overloaded functions can be "C" at line 146 - IMMEDIATE HELP REQUIRED!

Posted on 2004-10-07
5
467 Views
Last Modified: 2008-01-09
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
Comment
Question by:nickypp
5 Comments
 
LVL 8

Expert Comment

by:bramsquad
ID: 12253342
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
 

Author Comment

by:nickypp
ID: 12253654
Yeah, but what am I checking for?
- Nick ;-)
0
 
LVL 22

Accepted Solution

by:
cookre earned 500 total points
ID: 12254287
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
 
LVL 22

Expert Comment

by:cookre
ID: 12254319
Where are you getting your include files from?
0
 
LVL 1

Expert Comment

by:Feldspar
ID: 12255508
try moving the "#include <windows>" to after the other #includes
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question