[GtkD] Error 1: Previous Definition Different : __Dmain

Walter Bright newshound2 at digitalmars.com
Sun Oct 28 15:00:26 PDT 2012


On 10/27/2012 8:33 AM, "Adrien Tétar" <adri-from-59 at hotmail.fr>" wrote:> But 
there is an error appearing when GtkD.lib is passed to the linker:
 > Error 1: Previous Definition Different : __Dmain
 >
 > This is supposed to mean that there are two main function in the code,

http://www.digitalmars.com/ctg/OptlinkErrorMessages.html#previous_definition_different

 > but how do I fix it ?

Try this:

     grep _Dmain gtkd.lib

and see if it is in there.



More information about the Digitalmars-d mailing list