This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: gcc in linux : UNDEFINED REFERENCE in configiochannelasinput..


What in the WORLD is ConfigIOchannelAsInput ??? It's not a standard
c function, so if you have a local header file that will tell the
compiler what
to do with it, you need to #include that header file.

Speaking only for myself,

Joe Durusau


hihihi wrote:

> I am a newbie in C.
>
> As ROOT in linux red hat 5.1
>
> I have these files placed in the same dir /usr/local/k8000
>
> i2c.c
> i2c.h
>
> I did :
>
> gcc -O3 -c i2c.c
>
> Then i made a test prog in the same dir.
>
> i2c_test.c:
>
> #include <i2c.h>
> main()
> {
>   ConfigIOchannelAsInput(1);
> }
>
> When i do :
>
> gcc i2c_test.c -o i2c_test.e -I/usr/local/k8000
>
> I get :
>
> /tmp/cca006041.o: In function `main':
> /tmp/cca006041.o(.text+0x17): undefined reference to
> `ConfigIOchannelAsInput'
>
> How can i solve this ???
>
> --
> My webserver http://hihihi.penguinpowered.com
> My home page at my provider http://www.casema.net/~hihihi


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]