RTXI / rtxi

Tutorials, FAQs, and more at http://rtxi.org/docs
GNU General Public License v3.0
53 stars 15 forks source link

Linking c files #92

Closed tnetoff closed 9 years ago

tnetoff commented 9 years ago

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

yapatel commented 9 years ago

Can you please copy paste the error you get here?