mgsLib  1.3
Mermaja's Graphic Screen. A simple C library to build Windows graphic applications from console programs.
Prepare and compile your code to use mgsLib.

mgsLib requires the following standard Windows libraries: gdi32, msimg32, winmm and gdiplus. Please note that this last has been added in this current version. You should indicate them in the linking options of your makefile in addition and after mgsLib itself. For instance

gcc -o MyProg.exe MyProg.c -L"path_to_mgsLib" -lmgsLib -lgdi32 -lmsimg32 -lWinmm -lgdiplus

The image below shows a possible configuration of these options in MinGW Developer Studio. You should change the path to mgsLib to the one you use.

MinGWConf.png
Configuration of link options in MinGW Developer Studio

The only requirment in your source C code is to include the header file mgsLib.h provided with the library, and the mrmWidgets.h header if your application is going to use any widgets. In this later case, read also Integrating and using mrmWidgets on mgsLib graphical applications to know how to adapt your program. If you are using MinGW Developer Studio you can copy both header files to the include folder, usually C: ⁄ MinGWStudio ⁄ MinGW ⁄ include if you follow the default installation path, and libmgsLib.a to the lib folder, usually C: ⁄ MinGWStudio ⁄ MinGW ⁄ lib. This way you will not have to specify the library path and you will be able to use mgsLib as any other standard system library.