Please download mingw32 and then compile .c files with following instructions (they are taken from my build.xml, so you need to change them to whatever format you use):
<exec dir="${obj.dir}" executable="gcc.exe">
<arg value="-D_WINGDI_"/>
<arg value="-DBUILD_DLL"/>
<arg value="-I../${stub.includes.opengl}"/>
<arg value="-I${java.include.path}"/>
<arg value="-I${java.include.path.pd}"/>
<arg line=" -D_STRICT_ANSI -D_JNI_IMPLEMENTATION_ -c"/>
<arg line="${native.files}"/>
</exec>
<exec dir="${obj.dir}" executable="gcc.exe">
<arg line="-o jogl.dll"/>
<arg line="*.o"/>
<arg line="-shared -Wl,--kill-at -L${jdk.home}/lib -lopengl32 -lglu32 -ljawt -lgdi32"/>
</exec>
In reality, after substitution, commands on my system looked like:
'gcc.exe'
'-D_WINGDI_'
'-DBUILD_DLL'
'-I../../make/stub_includes/opengl'
'-IC:/java/jdk1.4.2/include'
'-IC:/java/jdk1.4.2/include/win32'
'-D_STRICT_ANSI'
'-D_JNI_IMPLEMENTATION_'
'-c'
'C:\java\eclipse-cvs\workspace\jogl\build\gensrc\native\jogl\GLUImpl_JNI.c'
'C:\java\eclipse-cvs\workspace\jogl\build\gensrc\native\jogl\JAWTFactory_JNI.c'
'C:\java\eclipse-cvs\workspace\jogl\build\gensrc\native\jogl\JAWT_DrawingSurface_JNI.c'
'C:\java\eclipse-cvs\workspace\jogl\build\gensrc\native\jogl\JAWT_JNI.c'
'C:\java\eclipse-cvs\workspace\jogl\build\gensrc\native\jogl\WGL_JNI.c'
'C:\java\eclipse-cvs\workspace\jogl\build\gensrc\native\jogl\WindowsGLImpl_JNI.c'
'C:\java\eclipse-cvs\workspace\jogl\src\native\jogl\JAWT_DrawingSurfaceInfo.c'
and for linking
'gcc.exe'
'-o'
'jogl.dll'
'*.o'
'-shared'
'-Wl,--kill-at'
'-LC:/java/jdk1.4.2/lib'
'-lopengl32'
'-lglu32'
'-ljawt'
'-lgdi32'
I’ll try to modify build.xml from rgrzywinski to make this stuff automagically. Until then, play with command line 