Solved

Error E2337 using C++ header files

Posted on 2004-10-04
3
326 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
[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
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 58

Expert Comment

by:Julian Hansen
ID: 12224611
0

Featured Post

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

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

In this post we will learn different types of Android Layout and some basics of an Android App.
The SignAloud Glove is capable of translating American Sign Language signs into text and audio.
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 …
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…

624 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