RE: [gtk-list] Re: Win32 Support



Hi,

        I got this error once compiling my own gtk apps on windows so I added
this to my code after main()

#ifdef NATIVE_WIN32 
 
int _stdcall WinMain (int hInstance, int hPrevInstance, char *lpszCmdLine, int
nCmdShow) 
{ 
  return main (__argc, __argv); 
} 
 
#endif /* NATIVE_WIN32 */

That should fix your compile error.

-Scott

On 22-Apr-99 Herbert Szumovski wrote:
> At 10:09 AM 4/22/99 Thursday, you wrote:
>>
> <<<<<<<snip>>>>>>>
>>Could you explain in a really few words what I need to do
>>to compile my own GTK/GTK+ sources on windows (currently
>>working on Linux)?
>>
> Yes please, that would help me also.  I never developed
> under Windows, but surprisingly enough my GTK sources
> compiled without any error under VC 6.0 !  The only
> problem is that the Link-step stops with one severe
> error, complaining about a Winmain@16 entry which it
> cannot find.  I'm sure, I'm just doing some basics wrong,
> I don't know VC well.
>   However, great job, thanks to Tor and the GTK-team !
> /Herbert
> 
>   ------------------------------------------------------------------
>   Herbert Szumovski, SE          Direct Line    :  +43-1-24030-6217
>   Cisco Systems Ges.m.b.H.       Fax            :  +43-1-24030-6300 
>   Millenium Tower                Cellular & VMbx:  +43-664-101-7854        
>   Handelskai 94-96               Web: http://www.cisco.com/   
>   A-1200 Vienna                  Austrian site:
>   A U S T R I A                  http://www.cisco.com/at/
>   ------------------------------------------------------------------
> 
> -- 
> To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]