
DS-MPE-CAN2L User Manual Rev A.
www.diamondsystems.com
Page 18
Compiling CAN Application using CANLib Library
Export the Library path using below command.
export LD_LIBRARY_PATH=$ LD_LIBRARY_PATH:/path-to-CANLib
To compile the application, use the below command.
g++ can_app.c -lCAN
–L/path-to-CANLib -o can_app