473,240 Members | 1,633 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,240 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 3692

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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Rick | last post by:
Hello all. I have an index.php file that has a lot of functions that I wrote. Let's say for the sake of argument that there are 1000 functions of 100 lines each. The index.php file is invoked...
3
by: elektrophyte | last post by:
I was looking at the PHP function "call_user_func()" (http://us3.php.net/call_user_func). It appears that this will solve a design problem in the app I'm working on. (I'm writing a class that will...
12
by: Steffen | last post by:
Hi, I stumbled across the following error foo.cc: In function `int main()': foo.cc:15: error: no matching function for call to `Bar::foo(int)' foo.cc:9: error: candidates are: void...
9
by: rnn98 | last post by:
hi, my multithread application, running under solaris box, is crashing eventually. I tried to spot and substitute functions not "thread safe", but I guess my search wasn't good enough. I have put...
1
by: Robert Heuvel | last post by:
Why did you devise invoking generics functions like you did? I understand that the method of use is "compatible" to that of generic classes but isn't it a bit clumsy? Or am I missing something? ...
1
by: foneman | last post by:
I wrote and compiled a dll without error. When running the app that calls my dll, I get "Missing required export functions at <filepath to my dll> The dll was created with Visual C++ .Net...
4
by: dougans | last post by:
Hey there, Hope someone can help me, completely stuck with immigrating from php4 to OOP based php5. == index.php -- include(database.inc.php);
4
by: Jake Barnes | last post by:
<FAQENTRY> Weird. I go to Google and search for "javascript faq". These are the top results: http://www.javascripter.net/faq/index.htm http://www.irt.org/script/script.htm...
3
by: Zerozone | last post by:
I mean : How can C write these functions... I would like to know it, so you can show me where can I find about this infomation ?
8
by: =?Utf-8?B?UiBSZXllcw==?= | last post by:
I have a public class called Database.cs. It has public static functions and I call them from ProjectA. The code looks something like: int intConnectionSuccessful = Database.ConnectToDatabase();...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...

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.