[erlang-questions] Emakefile and macro

Bengt Kleberg <>
Wed Feb 4 08:31:43 CET 2009


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




More information about the erlang-questions mailing list