I still haven't got this thing to work. How do I static link this project?
Haven't you found out that the paths to your images are the problem?
If still the paths are your problem i cant try to explain to you how paths work with projects:
1) If you program an application and you open a file with fopen("image.jpg"); Your application will search in the same folder as where it is for the file "image.jpg". This is called the "current working directory", cwd in short.
2) If you start this application from codeblocks, codeblocks will set the cwd to the folder where the project file is located. This is done so you can make a release build and a debug build in different folders, but your resources are always at the same place. You can change the cwd in Project->Properties->Execution working directory. Changing this option will not alter the behaviour if you start your application by double clicking on it
3) So if you open a file in your application using relative paths place the resource file in the project directory when starting your application within codeblocks, and put your resource file near to your application if you start it through double click.
To link your library in your application is dependend on your library. This is not specific something about codeblocks
I have googled for 5 sec and found this link:
https://www.allegro.cc/forums/thread/616656I do not know how you have set up your project and added the libraries, but if you use pkg-config you will have to change the line to following:
pkg-config --libs --static allegro-static-5 allegro_image-static-5 allegro_primitives-static-5
How did you installed allegro? If you have used the package manager you do not have a library problem...