?
Solved

E2337 Only one of a set of overloaded functions can be "C" at line 146 -- Urgent help required!

Posted on 2004-10-07
5
Medium Priority
?
1,215 Views
Last Modified: 2008-03-10
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.
0
Comment
Question by:nickypp
[X]
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
  • 2
  • 2
5 Comments
 
LVL 30

Expert Comment

by:Axter
ID: 12253705
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>

0
 

Author Comment

by:nickypp
ID: 12253720
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?
0
 
LVL 30

Expert Comment

by:Axter
ID: 12253849
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.
0
 

Author Comment

by:nickypp
ID: 12253867
using a *.cpp file.
0
 
LVL 17

Accepted Solution

by:
mokule earned 2000 total points
ID: 12253892
Hi,
I've commented out this line from glut.h
extern _CRTIMP void __cdecl exit(int);
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

741 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