I've been away from allegro for a while; especially in Windows but I now need to setup a windows environment for a specific project.
I followed the instructions here: https://wiki.allegro.cc/index.php?title=Windows,_Code::Blocks_and_Allegro_5
Which have been great; but I'm stuck on linking. I'd prefer static, but I really don't mind if dynamic is easier.
I've tried this several ways:
So the guidance says:
When linking statically there are many more libraries that you need to link to.
Here is the full list of libraries :
So, I've made sure the allegro/lib folder is in the linker search directory and in codeblocks I do Project->Build Options->Linker settings then in the Other Linker options I paste the above.
But on compilation it says it cannot find any of them.
Addendum I have also added these to the Settings->Compiler linker settings.
in the linked libraries section I have added 'liballegro-5.0.10-monolith-static-mt.a' which I understand to be enough to compile the following:
But this gives undefined reference errors for all the allegro functions. I am guessing I am missing a linked library, but to be honest I can't work out which ones I would need to include.
I guess that the assumption the the monolith is everything roled in to one is not correct?
Can anyone point me to what I need to include or why the -l... options from the guidance wouldn't work?
I have now added a link to all the .a files that are labelled as static and the it still doesn't compiler (same reference errors).