How use LTC 2418 with arduino

Hello,
I am interested to take the data from an analog-to-digital converter (LTC2418) with an Arduino Mega board to make a device that measures the capacity of 8 batteries simultaneously.
I already bought an Arduino Mega board and a LTC2418, I studied its card catalog and understand how addresses are constructed for each channel. Fail to do SPI communication.
On the internet I found some examples but give compiletime errors. Can someone help me with a good code?

On the internet I found some examples but give compiletime errors. Can someone help me with a good code?

Why not fix the code you have? Post the code and links to any non-standard libraries.

Hello!
Library I found it here:

I tried to compile LTC2418.cpp and I encounter the following error :

libraries\LTC2418-arduino-master\LTC2418.cpp.o (symbol from plugin): In function `LTC2418::LTC2418(int, int)':

(.text+0x0): multiple definition of `LTC2418::LTC2418(int, int)'

sketch\sketch_nov17a.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here

c:/program files (x86)/arduino/hardware/tools/avr/bin/../lib/gcc/avr/4.9.2/../../../../avr/bin/ld.exe: Disabling relaxation: it will not work with multiple definitions

libraries\LTC2418-arduino-master\LTC2418.cpp.o (symbol from plugin): In function `LTC2418::LTC2418(int, int)':

(.text+0x0): multiple definition of `LTC2418::LTC2418(int, int)'

sketch\sketch_nov17a.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\LTC2418-arduino-master\LTC2418.cpp.o (symbol from plugin): In function `LTC2418::LTC2418(int, int)':

(.text+0x0): multiple definition of `LTC2418::set_calibration(float, int)'

sketch\sketch_nov17a.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\LTC2418-arduino-master\LTC2418.cpp.o (symbol from plugin): In function `LTC2418::LTC2418(int, int)':

(.text+0x0): multiple definition of `LTC2418::read(dac_ch_t)'

sketch\sketch_nov17a.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here

C:\Users\Design\AppData\Local\Temp\ccDjvipe.ltrans0.ltrans.o: In function `main':

ccDjvipe.ltrans0.o:(.text.startup+0xe0): undefined reference to `setup'

ccDjvipe.ltrans0.o:(.text.startup+0xe8): undefined reference to `loop'

collect2.exe: error: ld returned 1 exit status

exit status 1
Error compiling for board Arduino/Genuino Mega or Mega 2560.

Where is YOUR code?

The code is in LTC2418.cpp from link.

The code is in LTC2418.cpp from link.

First, you need to post your code here, not somewhere else.

Second, your code is in a .ino file, not a .cpp file.