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
459 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
What is the compatible hibernate version for spring 4.3.1 10 75
recursion example 16 111
Path to Python 9 103
Filename to be appended with DateTimeof Download 3 40
RIA (Rich Internet Application) tools are interactive internet applications which have many of the characteristics of desktop applications. The RIA tools typically deliver output either by the way of a site-specific browser or via browser plug-in. T…
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…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
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 …

939 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now