Error I2c_smbus_write_byte_data

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

Looks like the version cause this symptom.

https://github.com/hallard/ArduiPi_OLED/issues/15

Any reason need to build this instead just use the i2cutils.

sudo apt-get install i2c-tools