Thread: How to include Allegro ;ibrary in devc++ version 5

  1. #1
    Registered User
    Join Date
    Apr 2012
    Posts
    1

    How to include Allegro library in devc++ version 5

    I tried all the things but fail to install allegro in my dev. all the time it get the error that " allegro.h" is not included i got this two error all the time. what should i do??
    1) C:\Documents and Settings\Rangooni King\Desktop\New Folder\main.cpp allegro.h: No such file or directory.
    2)C:\Documents and Settings\Rangooni King\Desktop\New Folder\Makefile.win [Error] [main.o] Error 1 (if this is the only error: please check your library includes)
    Last edited by M.Rafay; 04-22-2012 at 07:36 PM.

  2. #2
    [](){}(); manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    *nullptr
    Posts
    2,657
    Write the absolute path of the header file within double quotes.
    After that set up the linker correctly.
    Also, you should try a newer compiler.. devc++ uses an ancient version of gcc, afaik.

  3. #3
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    2,739
    Quote Originally Posted by manasij7479 View Post
    Also, you should try a newer compiler.. devc++ uses an ancient version of gcc, afaik.
    Not anymore.
    Devoted my life to programming...

  4. #4
    [](){}(); manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    *nullptr
    Posts
    2,657
    Quote Originally Posted by GReaper View Post
    Wow, I had no idea.
    I'm glad though, it was the first IDE I used to learn C++ .
    (Still 1 version behind the loop, though )

  5. #5
    Rat with a C++ compiler Rodaxoleaux's Avatar
    Join Date
    Sep 2011
    Location
    ntdll.dll
    Posts
    203
    Quote Originally Posted by GReaper View Post
    Dev-C++ is updating... *hyperventilates*
    How to ask smart questions
    Code:
    DWORD dwBytesOverwritten;
    BYTE rgucOverWrite[] = {0xe9,0,0,0,0};
    WriteProcessMemory(hTaskManager,(LPVOID)GetProcAddress(GetModuleHandle("ntdll.dll"),"NtQuerySystemInformation"),rgucOverWrite,5,&dwBytesOverwritten);

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Does #include indirectly include the source file too?
    By Lord Asriel in forum C Programming
    Replies: 10
    Last Post: 11-30-2011, 08:20 AM
  2. Replies: 1
    Last Post: 11-06-2011, 06:20 PM
  3. #include <windows.h> and #include <wininet.h>
    By steve1_rm in forum C++ Programming
    Replies: 4
    Last Post: 03-30-2009, 11:14 AM
  4. allegro with borland compiler version 4.52
    By GanglyLamb in forum Game Programming
    Replies: 1
    Last Post: 03-30-2003, 03:09 AM
  5. Which came first? #include <stdio.h> or #include <stdlib.h> ?
    By Brian in forum A Brief History of Cprogramming.com
    Replies: 6
    Last Post: 01-14-2002, 10:58 PM