[erlang-questions] Emakefile and macro

David Nonnenmacher <>
Wed Feb 4 22:57:15 CET 2009


Hello Bengt,

It works better now using atom,

thank you for your help.

David

2009/2/4 Bengt Kleberg <>

> Greetings,
>
> Try to change {d,"MY_MACRO", "ITS_VALUE"} to {d,'MY_MACRO', 'ITS_VALUE'}
>
>
> bengt
>
> On Tue, 2009-02-03 at 19:24 +0100, David Nonnenmacher wrote:
> > Hello,
> >
> > I would like to compile some erlang files that contains a macro. The
> > Emakefile has the following contents:
> >
> > {"/home/dnonnenm/PROJECTS/lib/my_appli/src/*",
> >  [{i,"/home/dnonnenm/PROJECTS/lib/"},
> >   {d,"MY_MACRO", "ITS_VALUE"},
> >   {outdir,"/home/dnonnenm/PROJECTS/lib/my_appli/ebin"}]}.
> >
> > The problem is that there is no generated beam. The output command (ie
> > erl -make) is the following:
> >
> > Recompile: /home/dnonnenm/PROJECTS/lib/my_appli/src/module_1
> > Recompile: /home/dnonnenm/PROJECTS/lib/my_appli/src/module_2
> > Recompile: /home/dnonnenm/PROJECTS/lib/my_appli/src/module_3
> >
> > There are no errors, no warnings.
> >
> > I did the same but removing the macro definition (ie {d, ....}), and
> > there are some beam generated. But I have an error dur to the missing
> > macro.
> >
> > Is this a bug ? or did i write something bad ?
> >
> > David
> > _______________________________________________
> > erlang-questions mailing list
> > 
> > http://www.erlang.org/mailman/listinfo/erlang-questions
>
> _______________________________________________
> erlang-questions mailing list
> 
> http://www.erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20090204/ba737751/attachment.html>


More information about the erlang-questions mailing list