This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
gcc in linux : UNDEFINED REFERENCE in configiochannelasinput..
- To: help-gcc at gnu dot org
- Subject: gcc in linux : UNDEFINED REFERENCE in configiochannelasinput..
- From: hihihi <hihihi at casema dot net>
- Date: Wed, 25 Aug 1999 18:32:03 +0200
- Newsgroups: gnu.gcc.help
- Xref: wodc7nx0 gnu.gcc.help:691
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
I get :
/tmp/cca006041.o: In function `main':
/tmp/cca006041.o(.text+0x17): undefined reference to
`ConfigIOchannelAsInput'
I have also treid :
gcc i2c_test.c -o i2c_test.e -I/usr/local/k8000
But that gives the same error..
How can i solve this ???
--
My webserver http://hihihi.penguinpowered.com
My home page at my provider http://www.casema.net/~hihihi