libaard
General
libaard is a library with two purposes: Making cross platform development (basically, Windows and UNIX) at a low level easier, and providing some generally useful functions (like cat()). For example, using netaddrinfo() you can hide all the dirty details of the getaddrinfo implementation in windows and even have your code work on platforms where getaddrinfo is not available -- without much performance loss and without additional code from you. netaddrinfo() works just like getaddrinfo().
There's a mailinglist, to subscribe send an email to ibaard-subscribe@lart.info
Function/type descriptions
- ibaard.h
- ibaard_authinfo.h
- ibaard_cat.h
- ibaard_fs.h
- ibaard_log.h
- ibaard_network.h
- ibaard_strip.h
- ibaard_types.h
Building
At least on UNIX just typing 'make' should work. You can control the build using some environment variables, usually by setting them to 1 or 0:
- SSL
- compile with SSL-support. Should work with any SSL-library using the OpenSSL-AI
- DEBUG
- Add debug information to the binaries, don't strip.
- WIN32
- Build for windows. Adds .exe to the binaries and links to libws2_32, libwsock32 and libgdi32
- CROSS
- Cross-compile by prefixing the toolchain with CROSS (see examples below)
- DIET
- Set to the diet-wrapper if you want to do a dietlibc build
Examples
Doing a CROSS-build for Windows using MinGW # make CROSS=i386-pc-mingw32- WIN32=1 Building with SSL # make SSL=1 Build with dietlibc # make DIET=/opt/diet/bin/diet
Please note that `works on windows' does not necessarily means `builds on windows'. While I test releases on Windows using Borland C CVS snapshots are only guaranteed to work in GNU environements -- I'm usually doing my Windows-builds, including dailys, on Solaris/SPARC using a MinGW crosscompiler.
Download
- ibaard-cvs-current.tar.gz | ibaard-cvs-current.tar.bz2
- Source archive containing a CVS-snapshot (usually created at about 05:00 CET). It's safe to work with the CVS-version since experimental features will only get enabled if you compile with -DDEV, but bugfixes and safe new features will be available long time before the next release comes out.
- anonymous CVS (-d:pserver:cvs@cvs.pimp.lart.info:/cvs co ibaard)
- The sources can be accessed via anonymous CVS using pserver at cvs.pimp.lart.info in module ibaard