Hi Kevin,
Now I start to understand you try to build something with the raw lwIP API. I didn't port them over to the new lwIP version jet. There are still some fixes in the library to do.
But as you corrected right the #include "netif/device.h" is now #include "device.h"
The other compiler errors which seem magically to appear and disappear are caused by the fact that you are including the library twice. That was not a problem with the old version in tag/13 caused by the fact that it was a precompiled library. Background: Library files get only pulled in the binary if there is no other implementation of the function in your application. But in the updated version the tag is changed to a source version. I've restructured the project tree.
So to solve this just get rid of the library 13.
Another linking time error is caused by the fact that the symbol eth is already defined by the device.cpp. If you make your line 118: Ethernet eth; to extern Ethernet eth; it’s marked as extern and both files will use the same object.
Here is the fixed version back.
By the way what is you program about? Do you try to make your own experience to implement an HTTP server?
If you just want to use one try the HTTPServer class, in the new version it should be more reliable and can do the static IP/ dhcp trick of its own. Furthermore I would like to hear some improvement ideas ;-)
Cheers
Rolf
Hi All,
I had just upgraded to build 634 of the following Ethernet modules and now receive many compile errors where there were zero before.
http://mbed.org/projects/cookbook/svn/EMAC/lwip/tag/13
http://mbed.org/projects/cookbook/svn/EMAC/lwip/trunk
How can I go back to the previously released build -or- is there a fix on the way?
...kevin