Re: Compiling under Windows using MSCV



Another option is to define the following function:

#if WIN32
int __stdcall WinMain(     
    HINSTANCE hInstance,
    HINSTANCE hPrevInstance,
    LPSTR lpCmdLine,
    int nCmdShow
)
{
  char *argv[1];
  argv[0] = "foo";
  int argc = 0;

  return main(argc, argv);
}
#endif

2008/4/30 Carlo <onetmt gmail com>:
oscar pablo di liscia ha scritto lo scorso 30/04/2008 01:06:
> Im am trying to compile GTK applications using MSCV 6.0.
> I downlodaded and instaled all the GTK packages. When I
> try to compile a simple sample project everything seems fine until
> this  error pops up:
> _WinMain 16 <mailto:_WinMain 16> unresolved external
> I don´t have this problem compiling with Mingw.

Not sure, but it could be a problem related to the kind of project you
creted in MSVC; try to set it to "console application".

_______________________________________________
gtk-list mailing list
gtk-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-list



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