vmiklos.hu
shameless self-promoting website
»Root
»Rejourn root
Posted Saturday, 15 October 2005 by Miklos
Tags: en hacking

mingw packages arrived! namely:

mingw-binutils
mingw-gcc
mingw-runtime
mingw-runtime-headers
mingw-w32api
mingw-w32api-headers
arrived to devel-extra. a sample use of it:
$ cat Makefile
CC = i386-mingw32msvc-gcc -O2 -Wall -mms-bitfields -mwindows

foo.exe: foo.c $(CC) -o $@ $gt;

$ cat foo.c
#include 

int main(void) { printf("hey!\n"); return(0); }

$ make
i386-mingw32msvc-gcc -O2 -Wall -mms-bitfields -mwindows -o foo.exe foo.c
$ wine foo.exe
hey!
:)

update: a related article

Comments