c++ - Linking prebuilt object in Arduino IDE -
i trying compile arduino program.
i want have files compiled, except sketch. modified arduino ide compiling uncompiled files need have .h files of of files.
is possible compile in cpp file having others in .o , without .h?
i don't want see files or code including .h.
if possible, start check arduino code looking how modify if isn't have way it.
arduino uses c++, compiled c++ function names mangled include parameter types in object(.o) file. way user's code compiled compatible name mangling have full function declarations @ compile time.
so must @ least provide header file includes full function declarations of functions user call. can't secret, api, user can't use if don't tell them it.
what don't need include in public header files declarations or definitions of internal private functions or data types.
so create library_public.h
file includes declarations user should know , provide .o files. , create library_private.h
has of secret stuff in it. private source code include both.
Comments
Post a Comment