Boost logo

Boost-Build :

Subject: [Boost-build] Using unixODBC and msodbc
From: Daniel Griffin (dgriff1_at_[hidden])
Date: 2008-09-24 11:14:36


Hi,

Im trying to get Boost Build to work for me and I am having trouble. I think
this question is dumb, but im new to build systems.

I have a simple project that is going to build on Linux, Windows and Mac
OSX. The projects only current external dependency is ODBC (unixodbc on
Linux/Mac). On windows we simply link libodbc32.a and libodbccp32.a, if we
were going to use a Makefile/gcc on Linux and Mac we would add -l iodbc.

Right now my jamfile just has this line:

exe jserver : sc/main.cpp sc/Action.cpp sc/aconnects.cpp lib/libodbc32.a
lib/libodbccp32.a ;

And works only on windows, how do I change it to additionally work on
Linux/Mac? How do I conditionally change what libraries are linked based on
platform?

Thanks,
Dan



Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk