How do I get the prereq libraries into my project.

08 Aug 2010

I am writing some new code to test out some of the examples here.  When I add the headers,

#include "mbed.h"

#include "EthernetNetIf.h"

EthernetNetIf eth;l

....

 

It needs a libray to be included, so it can pull the second .h file.  How do I do this?  Without this, compile errors:  Can't find EthernetNetIf.h source.

 

 

 

08 Aug 2010

You want to right-click on your project folder, click Import Library. Search for EthernetNetIf, and finally click Import. That should get you set up. If you want to view the source for the library then you can visit the appropriate page for auto-generated documentation. If you want to edit the source you can choose to import as files rather than as a library (though then you cannot update to a new version if the original author makes changes).

08 Aug 2010

Thank you, Ramona.

09 Jun 2012

Another newbie with a similar problem trying to reproduce the early ethernet example from here: http://mbed.org/cookbook/Working-with-the-networking-stack

I was able to get the EthernetNetIf library into my project using Ramona's reply above.

Unfortunately the Donatien Garnier HTTPclient library does not show up in the library list (a library from someone else that hasn't been updated for some time shows up).

So ... I follow the instructions in the cookbook: "You can import these packages in the compiler as libraries using those links: http://mbed.org/users/donatien/programs/HTTPClient "

There is an "Import this Program" link which works ... and imports it as a program but does not allow me to place it as a library in my project. Drag and drop does not allow me to move the program to my project as a library - so I'm stumped.

How do you get the Donatien Garnier HTTPclient as a library into a program I have created?