lwip/contrib/ports/unix/lib
2023-10-12 21:10:53 +02:00
..
CMakeLists.txt contrib/port/unix/lib: exclude slipif.c source 2023-04-07 22:07:17 +02:00
lwipopts.h unixlib: LWIP_LISTEN_BACKLOG -> TCP_LISTEN_BACKLOG 2023-10-12 21:10:53 +02:00
README Import lwIP contrib rep 2018-10-02 12:19:13 +02:00

This directory contains an example of how to compile lwIP as a shared library
on Linux.

Some brief instructions:

* Compile the code:

 > mkdir build
 > cd build
 > cmake ..
 > make clean all

 This should produce liblwip.so. This is the shared library.

* Link an application against the shared library

 If you're using gcc you can do this by including -llwip in your link command.

* Run your application

 Ensure that LD_LIBRARY_PATH includes the directory that contains liblwip.so
 (ie. this directory)


If you are unsure about shared libraries and libraries on linux in
general, you might find this HOWTO useful:

<http://www.tldp.org/HOWTO/Program-Library-HOWTO/>