"undefined references"
I've recently upgraded my kernel (from 2.4.31 to 2.6.19) and also my toolchain, and now I'm getting undefined references.
e.g.
:/home/mike/work/sensor/sensor.c:80: undefined reference to `i2c_smbus_write_block_data'
:/home/mike/work/sensor/sensor.c:95: undefined reference to `i2c_smbus_write_byte'
:/home/mike/work/sensor/sensor.c:107: undefined reference to `i2c_smbus_read_word_data'
collect2: ld returned 1 exit status
make: *** [sensor] Error 1
These routines are part of the i2c dev interface and appear to have been moved into the kernel from 2.6.13 onwards.
How do I get the linker to resolve these undefined references ? Is there some sort of special calling mechanism now that they are part of the kernel ?
Last edited by Mike Davies; 12-30-2006 at 12:20 PM.
|