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
456 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
Comment Utility
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
Comment Utility
Yeah, but what am I checking for?
- Nick ;-)
0
 
LVL 22

Accepted Solution

by:
cookre earned 500 total points
Comment Utility
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
Comment Utility
Where are you getting your include files from?
0
 
LVL 1

Expert Comment

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

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Replace a tag with sed 2 41
python question 5 57
Program to display an alert on Windows Toolbar 2 64
Image decoding from Camera 3 42
Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
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…
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 …

762 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

13 Experts available now in Live!

Get 1:1 Help Now