Re: [Dev-C++] Question: How to use the mingw compiler stand-alone?
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Elias P. <Eli...@ao...> - 2000-11-23 16:25:58
|
> I am using DevC++ 4 for a new project, and want to use the library > "Allegro". This library contains a make-file for stand-alone > mingw-compiler. I would like to know however how I can use the compiler > that comes with DevC++. > What settings for the environment do I need (the path to DevC++ is > "c:\devc++"). You should find a file readme.mgw in your allegro directory, which will tell you everything you need to compile the library. You could try following the steps given in readme.mgw (and download the mingw compiler a 2nd time), and then just copy the library and the include files to the dev-c++ lib/include directories. Or, you can directly use dev-c++'s compiler to compile. In this case, do everything in readme.mgw, but skip step 1, and in step 5 and 6, unzip to your devc++ directory instead into the mingw. Instead of step 7, write path c:\devc++\bin;%PATH% in the DOS window. Later, when compiling, instead of set MINGDIR=c:\mingw32 you have to use set MINGDIR=c:\devc++. If the compilation finds no erros, you should be able to use Allegro by adding -oalleg to your dev-c++ project. Elias Pschernig |