OK i started again installed codeblocks to c:\codeblocks. mingw is now c:\codeblocks\mingw.
I downloaded the prebuilt allegro library for MinGW (gcc 3.3) from here... Files
I extracted all files to c:\allegro and then copied the contents of allegro/bin to mingw/bin, allegro/lib to mingw/lib and allegro/bin to mingw/bin.
I used this sample to test it...
Code:
#include <allegro.h>
int main(){
allegro_init();
install_keyboard();
set_gfx_mode( GFX_AUTODETECT, 640, 480, 0, 0);
readkey();
return 0;
}
END_OF_MAIN();
And got these errors when I tried to build and run...
Code:
||=== test, Debug ===|
obj\Debug\main.o||In function `Z13_mangled_mainv':|
C:\C++_Projects\test\main.cpp|7|undefined reference to `_install_allegro_version_check'|
C:\C++_Projects\test\main.cpp|8|undefined reference to `install_keyboard'|
C:\C++_Projects\test\main.cpp|9|undefined reference to `set_gfx_mode'|
C:\C++_Projects\test\main.cpp|11|undefined reference to `readkey'|
obj\Debug\main.o||In function `WinMain@16':|
C:\C++_Projects\test\main.cpp|16|undefined reference to `_WinMain'|
||=== Build finished: 5 errors, 0 warnings ===|
Then I thought I may have to add a link in my linker settings so I added c:\codeblocks\mingw\lib\liballeg.a in my linker settings and now I get this pop up message instead...
The proecdure entry point _install_allegro_version_check could not be located in the dynamic link library alleg42.dll