468,513 Members | 962 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,513 developers. It's quick & easy.

GLUT.H: Only one of a set of overloaded functions can be "C"

Hi,

I'm trying to compile the following program -

#include <stdlib.h>
#include <stdio.h>
#include <math.h>
//#include "dsound.h"

#include <GL/glut.h>

int main()
{

return 0;
}

but I'm getting the error -

'Only one of a set of overloaded functions can be "C"' if I save this
program as a .cpp rather than a .c, and if I include either <stdlib.h>
or "dsound.h". I'm compiling with Bcc55. Any suggestions as to how I
can avoid this error,

Thanks,

Barry.

Aug 15 '06 #1
1 3448

bg***@yahoo.com wrote:
Hi,

I'm trying to compile the following program -

#include <stdlib.h>
#include <stdio.h>
#include <math.h>
//#include "dsound.h"

#include <GL/glut.h>

int main()
{

return 0;
}

but I'm getting the error -

'Only one of a set of overloaded functions can be "C"' if I save this
program as a .cpp rather than a .c, and if I include either <stdlib.h>
or "dsound.h". I'm compiling with Bcc55. Any suggestions as to how I
can avoid this error,

Thanks,

Barry.
I think I have a solution -

#define GLUT_BUILDING_LIB
#include <GL/glut.h>

Aug 15 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Rick | last post: by
3 posts views Thread by elektrophyte | last post: by
12 posts views Thread by Steffen | last post: by
1 post views Thread by Robert Heuvel | last post: by
8 posts views Thread by =?Utf-8?B?UiBSZXllcw==?= | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.