I just discovered what happened with the project compiled using a Win32 Console Target. It compiles and runs
(with some warnings about assertions on the console). It just did not found a data file needed and that´s the reason for wich
it crashed. Was not a compiling problem.
Problem solved. Many thanks.
Please, ignore my last message.
Best
Oscar
2008/5/1, oscar pablo di liscia <odiliscia@xxxxxxxxx>:
Many thanks for all the advices. I wanted to say that I compile perflectly my GTK applicationsusing MinGW, but I am now triying to do the same using MS-VC++.None worked.I changed my target to "Win32 Console Application" and it compiles smootly bu when I try to run it it simply open a console(i do no know why this does not surprise me...:)...) and produces an error.If I define the WinMain function as you recommended, the compiler still produces an error at link time:I am doing something really stupid probably, but I could not find any clue nor any tutorial and/or documentationon compiling GTk Applications using MS-VC++My code is attached to this msg.Any idea will be welcome.ThanksOscar
2008/4/30, Tor Lillqvist <tml@xxxxxx>:> char *argv[1];
> argv[0] = "foo";
> int argc = 0;
>
> return main(argc, argv);
Or even:
#include <stdlib.h>
...
return main (__argc, __argv);
__argc and __argv are set up by the C runtime at startup based on the
command line used to start the process even for WinMain programs.
--tml
_______________________________________________
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