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 <[EMAIL PROTECTED]>:

> 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:
> > [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 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
> [email protected]
> http://mail.gnome.org/mailman/listinfo/gtk-list
>
_______________________________________________
gtk-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtk-list

Reply via email to