Solved

Error E2337 using C++ header files

Posted on 2004-10-04
3
325 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 57

Expert Comment

by:Julian Hansen
ID: 12224611
0

Featured Post

Technology Partners: 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

Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

710 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