Question about erlang shell

Taavi Talvik taavi@REDACTED
Mon Sep 13 22:14:42 CEST 2004


On Mon, 13 Sep 2004, Bengt Kleberg wrote:

> Taavi Talvik wrote:
> > Hello !
> >
> > I have different versions of erlang runtime system on different machines.
> > However, this introduces fiew difficulties for build system. Currently I
> > am using simple gnu makefiles and don't want to introduce
> > autoconf/autotools.
> >
> > Makefile contains lines:
> > ERL_FLAGS       = -I/usr/local/lib/erlang/lib/snmp-3.4.8/include
> >
> > but on the other system, it should be
> > ERL_FLAGS       = -I/usr/local/lib/erlang/lib/snmp-3.4/include
>
> in the erlang source files (*.erl) you can write
>
> -include_lib("snmp/include/STANDARD-MIB.hrl").

Thanks, this is definitely magic!

Any sufficiently advanced technology is indistinguishable from magic.
                -- Arthur Clarke

best regards,
taavi




More information about the erlang-questions mailing list