This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: gcc in linux : UNDEFINED REFERENCE in configiochannelasinput..
- To: help-gcc at gnu dot org
- Subject: Re: gcc in linux : UNDEFINED REFERENCE in configiochannelasinput..
- From: Joe Durusau <durusau at delphi dot com>
- Date: Thu, 26 Aug 1999 06:48:40 -0400
- Newsgroups: gnu.gcc.help
- Organization: Lockheed Martin Corporation
- References: <37C41B7F.AAB18F0A@casema.net>
- Xref: wodc7nx0 gnu.gcc.help:701
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