[Lemon-user] request for a header (config.h)
Alpár Jüttner
alpar at cs.elte.hu
Mon Oct 4 06:01:10 CEST 2010
Hi,
>
> I download min-cost-flow-test.cc from lemon library . in this C++
> code, the header "confing.h" is used, but I can't find this header
> from "Browse Source/lemon" . I just find "config.h.in" and
> "config.h.cmake" but i don't know how to use them instead of
> "config.h" .
> please help me. I need a lot to it.
config.h contains some system specific parameters needed by LEMON, and
it is generated from config.h.in or from config.h.cmake during the
configuration process.
The best way to use LEMON is to either install it to the system or to
embed it into your application using CMAKE build environment. A template
for the embedded use can be found at
http://lemon.cs.elte.hu/trac/lemon/wiki/ProjectTemplate
If you want to embed LEMON on your own, then you can generate config.h
with one of the following ways:
* With CMAKE (on any OS)
* Download either the latest tar.gz release or chechout
the source with hg (or by clicking "zip" or "gz" at
http://lemon.cs.elte.hu/hg/lemon-main/ ) Then do this
from the source root:
mkdir build
cd build
cmake ..
* With Autotool (Unix only)
* If you use the .tar.gz release, then run the 'configure'
script from the root of the source tree.
* It you use the repository version, then run the
'./scripts/bootstrap.sh' and answer some simple
questions.
All of the following processes will generate the config.h you need.
Regards,
Alpar
More information about the Lemon-user
mailing list