I would like to get some help on how to fix the error that it shows when I run my Makefile. I downloaded the library for I2C which is libi2c-dev. I am using Ubuntu 18.04 with Cuda 10.0.
The following lines are the error that it shows in the terminal.
I2CGyro.c: undefined reference to ‘i2c_smbus_write_byte_data’
objects/I2CGyro.o: In funtion ‘i2cRead’:
I2CGyro.c: undefined reference to ‘i2c_smbus_read_i2c_block_data’
collect2: error: ld returned 1 exit status
Makefile:188:recipe for target ‘tx2_gyro_node’ failed