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
1,145 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
  • 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 500 total points
ID: 12253892
Hi,
I've commented out this line from glut.h
extern _CRTIMP void __cdecl exit(int);
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
Interoperability issue between VC++ (ocx) & VB.NET applications 7 74
FMX enumerated colours 2 84
Best book to learn C++ 4 70
White board coding practice 3 78
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…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

911 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

17 Experts available now in Live!

Get 1:1 Help Now