Solved

Error E2337 using C++ header files

Posted on 2004-10-04
3
323 Views
Last Modified: 2012-08-13
I have the following header files in my C++ program:

#include <gl/glut.h>
#include <gl/GLU.h>
#include <gl/GL.h>
#include <stdlib.h>
#include <math.h>
#include <iostream>

and the compiler is giving me the following message: Error E2337 C:\...\Include\stdlib.h 584: Only one set of overloaded functions can be "C".  Can someone please tell me what's wrong?

Thanks!
0
Comment
Question by:mikowee
3 Comments
 
LVL 1

Expert Comment

by:Perfunction
ID: 12223995
http://docs.sun.com/source/816-2459/Ch6.Diff.C_C++.html

It sounds like your stdlib has an overloaded function which is something that cannot be done in C.
0
 
LVL 1

Accepted Solution

by:
Feldspar earned 250 total points
ID: 12224597
There might be two functions with the same name that are declared as extern "C", which means it cant be overloaded -  Does the error say which funtion the conflict occurs on? Also what compiler are you using? It could be a problem with your defined symbols, make sure __cplusplus for example is being set during the build, or it could be that your header files are out of date or dont work with your compiler.  Just some ideas, hope this helps
0
 
LVL 54

Expert Comment

by:Julian Hansen
ID: 12224611
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

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 Python programming? 3 113
Turning python script into an applet 12 111
Apps blocked by Java 9 80
Selenium and Interactive Data Language 3 15
Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
This is an explanation of a simple data model to help parse a JSON feed
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 seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

809 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