Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > GLUT.H: Only one of a set of overloaded functions can be "C"

Reply
Thread Tools

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

 
 
bg_ie@yahoo.com
Guest
Posts: n/a
 
      08-15-2006
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.

 
Reply With Quote
 
 
 
 
bg_ie@yahoo.com
Guest
Posts: n/a
 
      08-15-2006

http://www.velocityreviews.com/forums/(E-Mail Removed) 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>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
please help me in distinguish redefining functions, overloading functions and overriding functions. Xiangliang Meng C++ 1 06-21-2004 03:11 AM
overloaded functions in multiple inheritance. DX C++ 3 06-11-2004 09:05 PM
Compile error with overloaded functions Jef Driesen C++ 1 01-29-2004 03:29 PM
Overloaded functions kazack C++ 3 11-27-2003 04:18 PM
Overriding overloaded functions? Generic Usenet Account C++ 2 08-27-2003 05:41 AM



Advertisments