0

I'm not using bloodshed dev c++ , instead I'm using orwell dev c++ , I got Allegro 5 and installed the package (as a .zip file) but it says 'allegro5/allegro.h: No such file or directory'. Maybe I'm using the wrong type of header or is it another problem?Thanks!

1 Answers1

0

That means you did not install the Allegro files in the correct place. I´m not familiar with the GCC Toolchain that Orwell uses (Im a Visual Studio guy), but what you need to do is place them on a place where the compiler can find them. Then make a makefile with the instructions on how to build this program with the correct Allegro libraries linked.

Here is the wiki article for installation on Code::Blocks, Maybe it can help you installing on DevC++, however, I think the binaries listed here might be newer than the ones on the Allegro's wiki page.

rlam12
  • 603
  • 5
  • 16
  • I'm really surprised why libraries are this hard to install :( I'm sure you know of the 'check for updates' button in bloodshed but I can't seem to find it on Orwell (I can't post this as a separate question but I need answers), where is it? –  Nov 15 '15 at 14:51
  • Yes they are hard to install at first but then you see the pattern... Either way, I'm not sure where is the update button there, usually should be on the Help section, if not you can always check from time to time the website to find new versions – rlam12 Nov 15 '15 at 14:54
  • I have tried countless tutorials including the one you recommended me but there's always files missing :-( I have tried getting SDL as an alternative for allegro but both have files missing . I download the exact versions and files the tutorial says to but why does the tutorial mention files/directories tgat I don't have? –  Nov 15 '15 at 22:45
  • May I know the tutorials you used to try to install allegro? You could try the one I did for Visual Studio [here](http://stackoverflow.com/questions/33557962/allegro-5-visual-studio-2015/33599724#33599724) – rlam12 Nov 15 '15 at 22:56
  • I did the youtube tutorials for allegro and the Cplusplus tutorial as well –  Nov 16 '15 at 17:39
  • Good news! My SDL header works but I can't run any programs yet because of this error message:C:\Users\fakeUsername\Documents\g++.exe [Error] unrecognized command line option '-static-libgcc-lalleg' –  Nov 16 '15 at 19:49
  • this is a leftover from a previous tutorial since I remember working with a file called 'lalleg' but how do I get rid of it? –  Nov 16 '15 at 19:58
  • Delete that part from the proyect's makefile – rlam12 Nov 16 '15 at 20:15
  • I took the lalleg off the command but it still comes up with the message –  Nov 17 '15 at 19:00