Includes

Vlad Dumitrescu vlad_dumitrescu@REDACTED
Sat Apr 22 20:39:53 CEST 2006


Hi.

>I have Erlang on /usr/lib/erlang/ so my project, let's suppose Serlvers, go 
>into:/usr/lib/erlang/serlvers-x.y.z/
>where x.y.z is the version (0.1.0 now, 0.2.0 soon). Is that right ? wrong ? 
>nobody knows ?

It is right.

>Then include files would go on:/usr/lib/erlang/serlvers-x.y.z/include/ 
>right ?
>How should then the applications using Serlvers include those files ?

Try
    -include_lib("serlvers/include/common.hrl").
The compiler will know how to find the latest version.

regards,
Vlad




More information about the erlang-questions mailing list