473,385 Members | 1,720 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,385 software developers and data experts.

ERROR: Function 'intigraph' should have a prototype.

i m new to c program....
i wrote a program as a follows-
Expand|Select|Wrap|Line Numbers
  1. #include <graphics.h>
  2. #include <conio.h>
  3.  
  4. main()
  5. {
  6.     int gd = DETECT, gm;
  7.  
  8.     initgraph(&gd, &gm,"C:\\TC\\BGI");
  9.  
  10.     outtextxy(10,20, "Graphics source code example.");
  11.  
  12.     circle(200, 200, 50);
  13.  
  14.     setcolor(BLUE);
  15.  
  16.     line(350, 250, 450, 50);
  17.  
  18.     getch();
  19.     closegraph( );
  20.     return 0;
  21. }
AND THE ERROR IS:function 'intigraph' should have a prototype.
PLEASE HELP.
Jul 2 '13 #1

✓ answered by weaknessforcats

There's no intigraph function called in your posted code.

There is an initgraph function in graphics.h and your code says to call initgraph.

Did you alter your code after you the error and before you posted it?

5 10478
stdq
94 64KB
Perhaps the prototype for this function is in a header other than the ones you've already included.
Jul 2 '13 #2
weaknessforcats
9,208 Expert Mod 8TB
There's no intigraph function called in your posted code.

There is an initgraph function in graphics.h and your code says to call initgraph.

Did you alter your code after you the error and before you posted it?
Jul 2 '13 #3
Nepomuk
3,112 Expert 2GB
Uhm, this line looks weird to me:
Expand|Select|Wrap|Line Numbers
  1. int gd = DETECT, gm;
Is that supposed to be a function call by any chance? If so, it would be something like
Expand|Select|Wrap|Line Numbers
  1. int gd = some_function(DETECT, gm);
This might cause the error in the following line (which is the one in which initgraph is called).
Jul 3 '13 #4
weaknessforcats
9,208 Expert Mod 8TB
@Nepomuk:
It's a use of the comma operator. Two ints are defined with one initialized to DETECT.
Jul 3 '13 #5
Nepomuk
3,112 Expert 2GB
Ah, you're right. My bad.
Jul 3 '13 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

21
by: Karl O. Pinc | last post by:
FYI, It'd be nice if the error message from a REFERENCES constraint mentioned the column name into which the bad data was attempted to be inserted. In PostgreSQL 7.3: sandbox=> insert into...
5
by: Ron St-Pierre | last post by:
I found this error in /var/log/messages yesterday after a cron job wouldn't complete: STATEMENT: ALTER TABLE victoria.eodData DROP COLUMN tickDate; ERROR: tables can have at most 1600 columns...
0
by: Marcel Boscher | last post by:
Hello everybody, i get strange error messages when trying to call up my function with a SELECT functionname(with or without int); varying from: ERROR: function chr(double precision) does...
10
by: PB | last post by:
Hi ! I have the following code, which I am using in an Embedded systems, c-compiler.. However I see the same problem with GCC too.. I need the last 10 bits of an address pointer, which is...
5
by: Daz | last post by:
Hi everyone. My query is very straight forward (I think). What's the difference between someFunc.blah = function(){ ; } and
3
by: gg9h0st | last post by:
function aa() {}; var bb = new aa(); var dd = new function cc() {}; aa.prototype.rr = 100; cc.prototype.rr = 100; ---------------------------------------------------------------
1
by: urkel | last post by:
Hi everyone, I critically need help to solve this problem related to pointer in C++ Basically, I have a C/C++ program "retardselfenerg" calling a Fortran 90 subroutine "surfGF4.f90". i am so...
10
by: sicba2222 | last post by:
Hi all, I am new to C++...I tried to compile the following program... #include<iostream.h> #include<conio.h> #include<string> #include<stdio.h> int main() {
5
by: jaishu | last post by:
Hi , I am using a form based on a query. The form is locked and the fields are not editable, but when i just tried typing something, the contents on the form didnt change, but when i closed and...
3
by: phobia1 | last post by:
Hi once again. We have just changed our ISP and things that worked fine now do not, Obviously its in the differences of MYSQL and PHP versions. Have fixed most of the problems but this UPDATE...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.