Re: Compiling under Windows using MSCV

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

 



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@xxxxxxxxx>:
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@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

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

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux