Y
yeah
hi
I got this error "implicit declaration of function"
what it means???
I got this error "implicit declaration of function"
what it means???
hi
I got this error "implicit declaration of function"
what it means???
yeah said:
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
A function is not the same as a prototype, a prototype merly describes (ayeah said: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?
What's up, your gmail filter broke?Richard Heathfield said:yeah said:
A function is not the same as a prototype, a prototype merly describes (a
part of) the interface of a funtion (i.e. it's in- and output types).
A prototype (in some header) is useless without the function (in some
libary). If enough documentation is provided with the function/library, you
may be able to create the prototype yourself, otherwise the function/libray
is useless, complain to the vendor
Downloading one or the other from the net won't help, you need both and they
need to match
Bye, Jojo
Richard said:yeah said:
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.
What's up, your gmail filter broke?
Take a closer look at i2c.h, check whether that prototype is visible to youryeah said:Newsbeitrag
The prototype for certain functions are missing in the header files.
A function is not the same as a prototype, a prototype merly describes (a
part of) the interface of a funtion (i.e. it's in- and output types).
A prototype (in some header) is useless without the function (in some
libary). If enough documentation is provided with the function/library,
you
may be able to create the prototype yourself, otherwise the
function/libray
is useless, complain to the vendor
Downloading one or the other from the net won't help, you need both and
they
need to match
Bye, Jojo
ok.
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.h> is included in the main program.The i2c.h contains
"extern int i2c_attach_client(struct i2c_client *);"
This may be beond the scope of comp.lang.c, maybe you look in some linux orand also has written the function i2c_client.
but i dont understand why this error comes..
yeah said:.... 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.h> is 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..
A function is not the same as a prototype, a prototype merly describes (a
part of) the interface of a funtion (i.e. it's in- and output types).
A prototype (in some header) is useless without the function (in some
libary). If enough documentation is provided with the function/library, you
may be able to create the prototype yourself, otherwise the function/libray
is useless, complain to the vendor
Downloading one or the other from the net won't help, you need both and they
need to match
Bye, Jojo
ok.
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.h> is 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..
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.