Hi, Here is a simple guide for building with Mingw. Just remember that for 32 bits we use http://mingw.org and for 64 bits we use http://mingw-w64.org.
In a command line at "iup/html/examples/C": ----------- for 32 bits -------------------- Using static libraries: gcc -o sample.exe sample.c -I../../../include -L../../../lib/mingw4 -liup -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -lcomctl32 Using dynamic libraries: gcc -o sample.exe sample.c -I../../../include -L../../../lib/dllw4 -liup Using dynamic libraries with no console: gcc -Wl,-subsystem,windows -o sample.exe sample.c -I../../../include -L../../../lib/dllw4 -liupstub -liup Adding a resource file: windres -O coff -o iup.res ../../../etc/iup.rc gcc -Wl,-subsystem,windows -o sample.exe sample.c iup.res -I../../../include -L../../../lib/dllw4 -liupstub -liup ----------- 64 bits -------------------- PATH now points to mingw64 bin (it changes just a bit) Using static libraries: gcc -o sample.exe sample.c -I../../../include -L../../../lib/mingw4_64 -liup -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -lcomctl32 Using dynamic libraries: gcc -o sample.exe sample.c -I../../../include -L../../../lib/dllw4_64 -liup Using dynamic libraries with no console: gcc -Wl,-subsystem,windows -o sample.exe sample.c -I../../../include -L../../../lib/dllw4_64 -liupstub -liup Adding a resource file: windres -D TEC_64 -O coff -o iup.res ../../../etc/iup.rc gcc -Wl,-subsystem,windows -o sample.exe sample.c iup.res -I../../../include -L../../../lib/dllw4_64 -liupstub -liup ------------------------------------------------- Notice that I used folders with the same names used in the download packages. Best Regards, Antonio Scuri
------------------------------------------------------------------------------
_______________________________________________ Iup-users mailing list Iup-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/iup-users