chipKIT® Development Platform

Inspired by Arduino™

Multiple Folder Source

Created Sun, 30 Jun 2013 14:58:01 +0000 by Tommaso


Sun, 30 Jun 2013 14:58:01 +0000

Hello everyone,I am new in chipkit. I need to write different classes and to use inheritance from classes in different folders. i tried to put all them into my "personal libraries"folder but it didn't work. What can i do? Thankyou


Sun, 30 Jun 2013 17:57:07 +0000

This kind of thing gets kind of tricky in MPIDE.

Yes, it is perfectly possible. You can create multple libraries, and then include one library in another (with a #include as per usual), and do your inheritance as you would normally.

There is one extra step though which you have to do to make it all work - you have to also include every library that is used - all the inherited and included libraries as well - into your main sketch in order that MPIDE can work out which libraries to compile together into the build folder.

Without those includes you will get all sorts of class not found, etc, errors.

It is a failing of MPIDE that it inherited from the Arduino IDE.


Sat, 06 Jul 2013 15:58:48 +0000

Thankyou majenko