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

B

bg_ie

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.
 
B

bg_ie

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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,767
Messages
2,569,571
Members
45,045
Latest member
DRCM

Latest Threads

Top