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]

gcc in linux : UNDEFINED REFERENCE in configiochannelasinput..



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


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