Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Error E2337 using C++ header files

Posted on 2004-10-04
3
Medium Priority
?
329 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 750 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 60

Expert Comment

by:Julian Hansen
ID: 12224611
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

Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
The SignAloud Glove is capable of translating American Sign Language signs into text and audio.
Simple Linear Regression
Screencast - Getting to Know the Pipeline

971 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