I'm new to allegro and I'm trying to run this simple code
Every time I run it I get the "Couldnt initialize Allegro 5" message box instead of "Display window could not be shown". I tried code similar to mine( as in !al_init returning true ) and i get the same problem.
Any help will be greatly appreciated.
]]>What operating system? Is it a really old computer? I don't know.
]]>im running ubuntu 13.04 64bit and my computer is pretty good(cpu: intel i5, gpu: ati 4850, ssd harddrive, ect.)
]]>Did you by any chance mix up any previous installation of Allegro with the current one? This may happen if you have headers from a different version of the library installed than the library itself was built with.
]]>Did you by any chance mix up any previous installation of Allegro with the current one?
Yes, he did. I'll put 50 cents toward your next game if I am wrong.
#include <allegro5/allegro.h> #include <stdio.h> int main() { printf("%0x\n%0x\n", ALLEGRO_VERSION_INT, al_get_allegro_version()); return 0; }
]]>
ran the code and got
5010800
5000b00
so i assume i have two, so how do i uninstall one.???
]]>That means you are compiling against Allegro 5.1 headers, but are linking against Allegro 5.0.
You could delete the 5.0 libraries from /usr/local/lib, although depending on what you've done to get to this point, there may be something else going on.
]]>i got it working, just deleted everything.
]]>