Thread: Allegro with Dev-C++ 5

  1. #1

    Angry Allegro with Dev-C++ 5

    Everytime I try to compile a Allegro project in Dev-C++ 5 beta, it comes up with this:


    Building Makefile: "C:\Dev-C++\Makefile.win"
    Executing make...
    make.exe all -f "C:\Dev-C++\Makefile.win"
    Execution terminated
    g++.exe -o "C:\Dev-C++\testalleg.exe" -L"C:\DEV-C++\lib" -L"-lalleg_s -lgdi32 -ldxguid -lole32 -ldinput -lddraw -lwinmm -ldsound" -I"C:\DEV-C++\include" -I"C:\DEV-C++\include" -DALLEGRO_STATICLINK -g3 -mwindows
    G__~1.EXE: No input files
    0


    Then when I try to run the program it says "Project is not compiled"

    I am using the template in the allegro tab in the new project thing. Why isn't this compiling?

  2. #2
    ¡Amo fútbol!
    Join Date
    Dec 2001
    Posts
    2,138
    Can you use Allegro in v4? If so, I'd go back to v4. v5 is still beta and everything might not work right at the moment. If it isn't sytax, post it here:

    http://sourceforge.net/tracker/?grou...39&atid=110639

  3. #3
    Registered User
    Join Date
    Mar 2002
    Posts
    31

    Wink Its not your fault

    The reason for this i believe is that Dev-C++ 5(beta) has a BUG. The reason i say that Is because Im use to using Dev-C++ 4 not 5 and when i updated to 5 i kept on getting errors and illegal operations. So if i was you i would go back to Dev-c++ 4 and then install Allegro package. Then creat a new Project using the Allegro DLL type not the other one .
    - Read to Learn, and Learn to Read -

  4. #4
    I re-downloaded 4 because I accidently deleted the zip for 4

    Now I get this from the linker

    C:/DEV-C_~1/LIB/\libmingw32.a(main.o)(.text+0x8e): undefined reference to `WinMain@16'

    I am using a DLL Allegro Project. And yes I did put in END_OF_MAIN(); after my main.

  5. #5
    Unregistered
    Guest
    Did you download the version with the compiler (9.8MB) or the one without the compiler (1.55MB)?

  6. #6
    I d/l'ed with the compiler. And I'm not worried about 5 anymore, I went back to 4. So plz answer my question on the linker problem.

  7. #7
    Registered User
    Join Date
    Mar 2002
    Posts
    31

    The DLL file..

    You need to drag and drop the Allegro.DLL file from the DLL folder with in the Dev-C++ folder. C:\\Windows\Dev-c++\DLL\allegro4.dll or something similar. then drag that icon into your WINDOWS folder with all those files about a doezen of them and try running the program again then it will run. If you dont see the allegro4.dll file then maybe you need to enable see all files, even system files.
    - Read to Learn, and Learn to Read -

  8. #8
    it was just the code I was using. I made a new project and now it works.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. dev & allegro compile errors
    By Calgore in forum C++ Programming
    Replies: 10
    Last Post: 08-11-2004, 04:41 PM
  2. Actual Game Dev, no allegro
    By PHP in forum Game Programming
    Replies: 9
    Last Post: 12-17-2002, 04:05 PM
  3. Does allegro work on dev c++?
    By willgell in forum Game Programming
    Replies: 3
    Last Post: 12-13-2002, 11:44 PM
  4. Special Allegro Information
    By TechWins in forum Game Programming
    Replies: 12
    Last Post: 08-20-2002, 11:35 PM
  5. allegro + dev
    By Klinerr1 in forum C++ Programming
    Replies: 1
    Last Post: 06-24-2002, 02:03 AM