Requirements
- Windows 95/98/Me/NT/2000/XP (XP recommended)
- Mingw32 and/or Bloodshed DevC++ with GNU C/C++ 3.x or 4.x
Library installation
- Unpack "CRM32Pro_win32_gnu.rar" on your desired path.
- Installation path must be in your search path, the best way to do that is add an entry to PATH environment
variable. For example, in WindowsXP, right click on "My Computer", click on Properties/Advanced/Environment
variables and add a variable to user list: "PATH path_crm32pro". With this, you have "CRM32Pro.mingw.dll"
available for your applications.
- Your system is ready to run any application that uses the library and compiled with GNU C/C++.
Note: EditorDPF doesnt work as it was compiled with Visual Studio, so it still needs "CRM32Pro.dll".
- If you want to develop applications using the library, you could do one of the two next steps:
A) Copy static libraries(all .lib) to the path of GNU C/C++ where it stores static libraries(usually /lib/),
and "CRM32Pro.h" with "SDL folder", to the path of GNU C/C++ where it stores headers(usually /include/).
B) Using compiler command parameters, you must set the location of the static libraries and the headers.
Read below, to further information.
- Now, it's ready!, you can develop your own applications or compile the examples by yourself.
If you are using Bloodshed DevC++, an easy and quick alternative to the manual library installation
is to download the DevPack from http://www.niltonpd.pop.com.br/ which configures and installs
automatically all required files. This DevPack is updated by Nilton R.
How to compile applications
- Basically, you have to include "CRM32Pro.h" at beginning of your code
and link against "CRM32Pro.mingw.lib".
- The minimum parameters to use GCC or G++ using the library are:
"gcc -mwindows -lmingw32 example.cpp -o myoutput.exe CRM32Pro.mingw.lib"
- If you wish to use compiler command parameters to find the static libraries and headers, you should use this:
"gcc -mwindows -lmingw32 example.cpp -o myoutput.exe your_path/CRM32Pro.mingw.lib -Iyour_path"
- Optionally, you could use any optimization parameter,etc.To extend information, you can see below examples.
- If you are developing a console/windows application without MFC (or similar) support, you have to link against
"sdlmain.mingw.lib" (without SDL log errors output) or "sdlmainIO.mingw.lib" (with SDL log errors output ).
On this case, you have to include this static library on compiler options BEFORE "CRM32Pro.mingw.lib",
this is very important to avoid undefined references at linking time.
Otherwise, discard the use of this static library. |