Dictionary icon indicating copy to clipboard operation
Dictionary copied to clipboard

Separate into .h file and .cpp file

Open gadget1999 opened this issue 5 years ago • 1 comments

It seems the current implementation is in the .h file. This is causing issue when I need to include the Dictionary.h file in a class header, which results in the implementation get compiled multiple times in the project and linker complains about the duplicate implementations found in multiple cpp files that include the header file.

Is it possible to separate out the implementation into .cpp file?

gadget1999 avatar Oct 07 '20 03:10 gadget1999

It's an Arduino IDE legacy issue - if I do that I cannot use #define statements to control the library compilation parameters. I might need to do what I did for TaskScheduler - separate into Dictonary.h and DictionaryDeclarations.h Whenever I have time...

arkhipenko avatar Oct 07 '20 12:10 arkhipenko

There are two files: Dictionary.h and DictionaryDeclarations.h

Please follow the guidance on how to deal with multi-tab situations in the examples of the other library here: https://github.com/arkhipenko/TaskScheduler/tree/master/examples/Scheduler_example16_Multitab Same exact approach.

arkhipenko avatar Mar 21 '24 20:03 arkhipenko