473,324 Members | 2,356 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,324 software developers and data experts.

implicit declaration of function???

hi
I got this error "implicit declaration of function"
what it means???

Sep 14 '07 #1
6 129237
yeah said:
hi
I got this error "implicit declaration of function"
what it means???
You forgot to provide a prototype for a function within the scope
visible to the compiler at the point where it was compiling a call to
that function.

If it's a standard library function or a function from a third party
library (or indeed from your own library), include the appropriate
header.

If it's one of your own functions, copy the declarator to near the top
of the program, and bang a semicolon on the end of it. That should fix
the problem.

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
Sep 14 '07 #2
On Sep 14, 6:04 pm, Richard Heathfield <r...@see.sig.invalidwrote:
yeah said:
hi
I got this error "implicit declaration of function"
what it means???

You forgot to provide a prototype for a function within the scope
visible to the compiler at the point where it was compiling a call to
that function.

If it's a standard library function or a function from a third party
library (or indeed from your own library), include the appropriate
header.

If it's one of your own functions, copy the declarator to near the top
of the program, and bang a semicolon on the end of it. That should fix
the problem.

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
thanks
The prototype for certain functions are missing in the header files.
Is it possible to download the particular functions from net and add
it to the program?

Sep 14 '07 #3
"Richard Heathfield" <rj*@see.sig.invalidschrieb im Newsbeitrag
news:ib******************************@bt.com...
yeah said:
What's up, your gmail filter broke? 8-)

Bye, Jojo
Sep 14 '07 #4
Joachim Schmitz said:
"Richard Heathfield" <rj*@see.sig.invalidschrieb im Newsbeitrag
news:ib******************************@bt.com...
>yeah said:
What's up, your gmail filter broke? 8-)
Kind of. I'd removed the "killfile on" filter so that I could analyse a
thread elseUsenet, and forgot to restore it. This happens occasionally.
:-) (Also, *some* gmail users have been modded up. Not many, but I
think I've got most of the regular clueful gmailers for clc, anyway.)

Anyway, it's back on now. :-)

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
Sep 14 '07 #5
Richard Heathfield wrote:
yeah said:
>I got this error "implicit declaration of function"
what it means???

You forgot to provide a prototype for a function within the scope
visible to the compiler at the point where it was compiling a call
to that function.

If it's a standard library function or a function from a third
party library (or indeed from your own library), include the
appropriate header.

If it's one of your own functions, copy the declarator to near the
top of the program, and bang a semicolon on the end of it. That
should fix the problem.
Or, better, just move the whole function definition up ahead of the
first call to it. No duplications left to keep synced.

--
Chuck F (cbfalconer at maineline dot net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net>
--
Posted via a free Usenet account from http://www.teranews.com

Sep 14 '07 #6
yeah wrote:
>
.... snip ...
>
and i am also getting error like for example

WARNING: "i2c_attach_client" [/work/uclinux/uClinux-dist/
linux-2.6.x/drivers/video/chumma/bfin_adv7393fb.ko] undefined!

but the <i2c.his included in the main program.The i2c.h contains

"extern int i2c_attach_client(struct i2c_client *);"

and also has written the function i2c_client.
but i dont understand why this error comes..
Where is the .c file that the i2c.h file allows your source to
connect to? Does that file contain a proper definition of the
i2c_client function? If so, are you linking its object file into
your final program? Maybe the i2c.h file defines things in a
library, if so have you told the compiler to link to that library?

--
Chuck F (cbfalconer at maineline dot net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net>

--
Posted via a free Usenet account from http://www.teranews.com

Sep 14 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Jason | last post by:
Hi, Im running windows xp pro and compiling using dev c++ 4. I have the following situation: #include <iostream> #include <string> using namespace std; int main() {
2
by: nick | last post by:
the following is my programming code and compile message why the warning message arise, have i done somethings wrong? #include<stdio.h> typedef struct card{ int abc; }card;
7
by: Paminu | last post by:
On a gentoo linux system i don't get any warnings when I comlpile this code: #include <stdio.h> typedef struct test { void *content; struct test_ *bob; } test_;
6
by: Johs32 | last post by:
I get this warning: warning: incompatible implicit declaration of built-in function 'printf' because I use printf in a function that I include in a .h file that is included by other files...Do...
5
by: Christian Christmann | last post by:
Hi, in one file I've a function that is used by another file containing the main function: file1.c: .... void test( int a ) { ... } ....
14
by: UNCManiac37 | last post by:
Hi, I'm very new to coding, so this is a newbie question. I'm trying to print out a banner using functions instead of main: int main () { banner1 (); } void banner1 (void) { cout...
5
by: DanielJohnson | last post by:
I call a function which is named as func_name in file /source/folderA/ fileA.c. The actual function definition is in /source/folderB/fileB.c. And I get this error. warning: implicit...
3
by: samdomville | last post by:
hello...upon compilation, i get a warning: "warning: implicit declaration of funciton funciton_name" what, techicallly, is an implicit declaration? how/where would i look to track down the error?...
1
by: samdomville | last post by:
Hello - I have a .c file that gives me a warning "implicit declaration of function function_name". However, I have #included the header file that #defines that funciton, so how is it possible to...
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: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.