[GtkD] Error 1: Previous Definition Different : __Dmain

Mike Wey mike-wey at example.com
Sat Oct 27 13:04:17 PDT 2012


On 10/27/2012 05:33 PM, "Adrien Tétar" <adri-from-59 at hotmail.fr>" wrote:
> Hi,
>
> I have compiled GtkD 2.0 on Windows. Source files are passed to the
> compiler as well as library to the linker.
> I followed instructions from here :
> https://github.com/gtkd-developers/GtkD/wiki/Installing-on-Windows
>
> 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,
> but how do I fix it ?
>
> Thanks in advance.
>
> PS: I use DMD 2.060.

Did you already check if your code doesn't actually defines main twice?

-- 
Mike Wey


More information about the Digitalmars-d mailing list