[Lemon-user] Compiling sample codes

Alpár Jüttner alpar at cs.elte.hu
Mon Apr 27 20:45:26 CEST 2009


Oops, that's a bug indeed, 'make install' fails to install
lemon/config.h.
Thanks for pointing out, we will fix it soon.

Till then, the easiest thing is to copy lemon/config.h from the build
directory to /usr/local/include/lemon, but be aware to copy the right
file, as there is another config.h directly in the root of the build
directory.

Best regards,
Alpar


On Mon, 2009-04-27 at 20:49 +0300, Bahadır Doğan wrote:
> Hello,
> I downloaded the sources:
> wget http://lemon.cs.elte.hu/pub/sources/lemon-1.0.3.tar.gz
> and compiled and installed Lemon as this page says:
> 
> https://lemon.cs.elte.hu/trac/lemon/wiki/InstallAutotool
> 
> and tried to compile the sample code in this link:
> http://lemon.cs.elte.hu/pub/tutorial/hello_lemon.html
> 
> g++ -I/usr/local/include -L/usr/local/lib  test.cpp -o test -lemon
> 
> I get the error:
> In file included
> from /usr/local/include/lemon/bits/graph_extender.h:25,
>                  from /usr/local/include/lemon/list_graph.h:28,
>                  from l.cpp:2:
> /usr/local/include/lemon/bits/default_map.h:22:26: error:
> lemon/config.h: No such file or directory
> 
> 
> Also, the code in the Mercurial causes the same error.
> 
> When I modify the default_map.h file, it solves the compile problem.
> 
> Anybody got the same error?
> 
> Thanks.
> _______________________________________________
> Lemon-user mailing list
> Lemon-user at lemon.cs.elte.hu
> http://lemon.cs.elte.hu/mailman/listinfo/lemon-user




More information about the Lemon-user mailing list