Solved

Error E2337 using C++ header files

Posted on 2004-10-04
3
320 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 51

Expert Comment

by:Julian Hansen
ID: 12224611
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Problem to setup 18 79
strCount chalenge 3 50
wordlen challenge 3 46
Eclipse Neon start with Admin account only 6 46
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…

708 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

16 Experts available now in Live!

Get 1:1 Help Now