I am trying to setup a development environment on qt for programming on my arduino.
I can compile following code but when I try to run it I get "undefined reference " errors for the Arduino related method calls (like init(), pinMode() etc).
Apparently I have a linker problem. My project recognizes the header file but cannot link it to actual library.
What is the correct library to link against? My arduino (1.8.5) installation is under /opt in linux and has following high level structure:
Thanks in advance!