471,873 Members | 2,025 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,873 software developers and data experts.

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 3609

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 YellowAndGreen | last post: by
reply views Thread by zermasroor | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.