Help needed with allegro installation.

Hello everyone,
I have been trying to get allegro 5 installed with codeblocks.
I have gotten to the point where when im typing code and wanting to reference to an allegro class, codeblocks will give suggestions to what it thinks I'm trying to reference to. For example :
http://i.imgur.com/Cp3QEIy.png
This makes me think that i have done the installation partially correct?
Here are my linker settings:
http://i.imgur.com/t4sEL4e.png
http://i.imgur.com/Isxf2QM.png
I am using the MingW complier that was automatically installed with codeblocks. I am using codeblocks v12.11.
The problem i am receiving when compiling the following program:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
 #include<allegro5/allegro.h>
#include<allegro5/allegro_native_dialog.h>

int main(int argc, char* argv)
{
	ALLEGRO_DISPLAY *display;

	if(al_init())
		al_show_native_message_box(NULL, NULL, NULL, "Could not initialize Allegro 5", NULL, NULL);

	display = al_create_display(800, 600);

	if(!display)
		al_show_native_message_box(NULL, NULL, NULL, "Could not create Allegro 5 display", NULL, NULL);


	al_destroy_display(display);

	return 0;
}

is :
1
2
3
4
5
6
7
8
||=== testing again, Debug ===|
obj\Debug\main.o||In function `main':|
C:\Users\Ross\Code blocks test\testing again\main.cpp|10|undefined reference to `al_install_system'|
C:\Users\Ross\Code blocks test\testing again\main.cpp|11|undefined reference to `al_show_native_message_box'|
C:\Users\Ross\Code blocks test\testing again\main.cpp|13|undefined reference to `al_create_display'|
C:\Users\Ross\Code blocks test\testing again\main.cpp|16|undefined reference to `al_show_native_message_box'|
C:\Users\Ross\Code blocks test\testing again\main.cpp|19|undefined reference to `al_destroy_display'|
||=== Build finished: 5 errors, 0 warnings (0 minutes, 0 seconds) ===|

Any ideas?
Thanks
Sumeth
Topic archived. No new replies allowed.