I have two files that I want to compile and use to make a module.
I have included the headers and the c files in the Makefile. The files seem to compile. But, when I run the module it says it cannot find the functions that are defined in the second c file. I feel like I am not linking properly.
Here is the Makefile:
PLUGIN_NAME = Arduino
HEADERS = arduino_serial.h Arduino.h
SOURCES = arduino_serial.c Arduino.cpp
LIBS =
Do not edit below this line
include $(shell rtxi_plugin_config --pkgdata-dir)/Makefile.plugin_compile
I have two files that I want to compile and use to make a module. I have included the headers and the c files in the Makefile. The files seem to compile. But, when I run the module it says it cannot find the functions that are defined in the second c file. I feel like I am not linking properly. Here is the Makefile:
PLUGIN_NAME = Arduino
HEADERS = arduino_serial.h Arduino.h
SOURCES = arduino_serial.c Arduino.cpp
LIBS =
Do not edit below this line
include $(shell rtxi_plugin_config --pkgdata-dir)/Makefile.plugin_compile