[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[linrad] Re: Windows
Hello Leif and Linraders.
I have just done what you requested:
I have installed under my debian box the following packages:
mingw32
mingw32-binutils
mingw32-runtime
I have read the following link with a quick tutorial:
http://www.mingw.org/docs.shtml
Create a directory for your proyect, go inside and create your source
*.c files:
I have tried this example code for a console application:
/* hello.c console test program */
#include <stdio.h>
int main(int argc, char **argv)
{
printf ("Hello\n");
return (0);
}
To compile it, just issue this command ( note that the gcc compiler is
renamed to avoid issues with the real gcc compiler in the Debian system):
$i586-mingw32msvc-gcc hello.c -o hello.exe
I have tested it under "wine" and works:
Also tested this graphical program:
/* hellographic.c test program */
#include <windows.h>
int WINAPI WinMain (HINSTANCE hInstance,
HINSTANCE hPrevInstance,
PSTR szCmdLine,
int iCmdShow)
{
MessageBox (NULL, "Hello", "Hello Demo", MB_OK);
return (0);
}
Compiled the same way:
$i586-mingw32msvc-gcc hellographic.c -o hellographic.exe -mwindows
It creates a little executable file. I have executed it and shows a
beautiful little window and a button.
Hope this helps as an starting point.
73, Ramiro.
EA1ABZ
#############################################################
This message is sent to you because you are subscribed to
the mailing list <linrad@xxxxxxxxxxxxxxxxxxxxx>.
To unsubscribe, E-mail to: <linrad-off@xxxxxxxxxxxxxxxxxxxxx>
To switch to the DIGEST mode, E-mail to <linrad-digest@xxxxxxxxxxxxxxxxxxxxx>
To switch to the INDEX mode, E-mail to <linrad-index@xxxxxxxxxxxxxxxxxxxxx>
Send administrative queries to <linrad-request@xxxxxxxxxxxxxxxxxxxxx>
LINRADDARNIL