Getting Allegro Set Up

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

Post Reply
User avatar
Pennywise
Chaos Rift Cool Newbie
Chaos Rift Cool Newbie
Posts: 55
Joined: Tue Sep 22, 2009 1:36 pm
Favorite Gaming Platforms: Megadrive(Genesis), Dreamcast, SNES, Nintendo 64
Programming Language of Choice: C, C++ and Java
Location: England

Getting Allegro Set Up

Post by Pennywise »

Hi...
Sorry that I am posting quite frequently. I will try to keep my posts to a minimum next time.

I have read my C++ book and wanting to install Allegro.
I already got SDL but the way I did that was download files and extract them and put them on my compiler.
With Allegro do I have to do the same thing?
I installed the Allegro Dev Pack for Dev C++ compiler and was wondering if that was the way to go.
Or did I have to get Allegro the same way I got SDL, extract files and put them in directories and stuff...

Thanks
Last edited by Pennywise on Tue Nov 03, 2009 1:57 am, edited 1 time in total.
User avatar
Bakkon
Chaos Rift Junior
Chaos Rift Junior
Posts: 384
Joined: Wed May 20, 2009 2:38 pm
Programming Language of Choice: C++
Location: Indiana

Re: Getting Allegro Set Up

Post by Bakkon »

User avatar
Pennywise
Chaos Rift Cool Newbie
Chaos Rift Cool Newbie
Posts: 55
Joined: Tue Sep 22, 2009 1:36 pm
Favorite Gaming Platforms: Megadrive(Genesis), Dreamcast, SNES, Nintendo 64
Programming Language of Choice: C, C++ and Java
Location: England

Re: Getting Allegro Set Up

Post by Pennywise »

Thanks Bakkon. But the sound card on my computer don't work, so I can't here anything on youtube.
User avatar
RyanPridgeon
Chaos Rift Maniac
Chaos Rift Maniac
Posts: 447
Joined: Sun Sep 21, 2008 1:34 pm
Current Project: "Triangle"
Favorite Gaming Platforms: PC
Programming Language of Choice: C/C++
Location: UK
Contact:

Re: Getting Allegro Set Up

Post by RyanPridgeon »

In future let us know what compiler/IDE you're using. Anyway...
This is what you do. (This is from my experience with GCC, but I assume its the same for other compilers)

First, get the version appropriate for your compiler. Then your library will have headers, libs and DLLs. You take the headers, and paste them in your compiler's include directory.

Then you take the lib files (.a/.o/.la), and paste them in your compiler's lib directory.

Now the DLL's are what the program uses when it's run. This means that anyone who wants to run your program needs these. So you can either paste them in the same folder as your project, or in your WINDOWS/System32 folder.

Now just make a project, and in your options for your IDE, you have to link the .lib files. You do this in your IDE's settings or whatever (like i said, we dont know what compiler you're using or anything)

Then you're set to start using the library in your project.
Ryan Pridgeon
C, C++, C#, Java, ActionScript 3, HaXe, PHP, VB.Net, Pascal
Music | Blog
User avatar
Pennywise
Chaos Rift Cool Newbie
Chaos Rift Cool Newbie
Posts: 55
Joined: Tue Sep 22, 2009 1:36 pm
Favorite Gaming Platforms: Megadrive(Genesis), Dreamcast, SNES, Nintendo 64
Programming Language of Choice: C, C++ and Java
Location: England

Re: Getting Allegro Set Up

Post by Pennywise »

OK.
I got Allegro set up and it's working fine. Thanks for your help.
RyanPridgeon wrote:In future let us know what compiler/IDE you're using.
I said on my earlier post I was using the Dev C++ Compiler.
User avatar
RyanPridgeon
Chaos Rift Maniac
Chaos Rift Maniac
Posts: 447
Joined: Sun Sep 21, 2008 1:34 pm
Current Project: "Triangle"
Favorite Gaming Platforms: PC
Programming Language of Choice: C/C++
Location: UK
Contact:

Re: Getting Allegro Set Up

Post by RyanPridgeon »

Pennywise wrote:OK.
I got Allegro set up and it's working fine. Thanks for your help.
RyanPridgeon wrote:In future let us know what compiler/IDE you're using.
I said on my earlier post I was using the Dev C++ Compiler.
Ah, sorry I didn't see that.

Btw Dev C++ is an IDE, your compiler is probably GNU GCC/G++
Ryan Pridgeon
C, C++, C#, Java, ActionScript 3, HaXe, PHP, VB.Net, Pascal
Music | Blog
User avatar
Kros
Chaos Rift Regular
Chaos Rift Regular
Posts: 136
Joined: Tue Feb 24, 2009 4:01 pm
Current Project: N/A
Favorite Gaming Platforms: PC, Playstation/2/3
Programming Language of Choice: C++
Location: Oregon,USA
Contact:

Re: Getting Allegro Set Up

Post by Kros »

RyanPridgeon wrote:Btw Dev C++ is an IDE, your compiler is probably GNU GCC/G++
By the way, the '/' in your comment about 'IDE/Compiler' very often means "or", you probably didn't realize you weren't asking for both.
Isaac Asimov wrote:Part of the inhumanity of the computer is that, once it is competently programmed and working smoothly, it is completely honest.
YouTube Channel
User avatar
Moosader
Game Developer
Game Developer
Posts: 1081
Joined: Wed May 07, 2008 12:29 am
Current Project: Find out at: http://www.youtube.com/coderrach
Favorite Gaming Platforms: PC, NES, SNES, PS2, PS1, DS, PSP, X360, WII
Programming Language of Choice: C++
Location: Kansas City
Contact:

Re: Getting Allegro Set Up

Post by Moosader »

Pennywise wrote:Thanks Bakkon. But the sound card on my computer don't work, so I can't here anything on youtube.
For future reference, I have written versions of most of my tutorials on my website. :P
User avatar
Pennywise
Chaos Rift Cool Newbie
Chaos Rift Cool Newbie
Posts: 55
Joined: Tue Sep 22, 2009 1:36 pm
Favorite Gaming Platforms: Megadrive(Genesis), Dreamcast, SNES, Nintendo 64
Programming Language of Choice: C, C++ and Java
Location: England

Re: Getting Allegro Set Up

Post by Pennywise »

Oh yeah
I didn't think before I posted. Sorry about that.
Post Reply