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
Getting Allegro Set Up
Moderator: Coders of Rage
- Pennywise
- 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
Last edited by Pennywise on Tue Nov 03, 2009 1:57 am, edited 1 time in total.
- Pennywise
- 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
Thanks Bakkon. But the sound card on my computer don't work, so I can't here anything on youtube.
- RyanPridgeon
- 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
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.
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.
- Pennywise
- 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
OK.
I got Allegro set up and it's working fine. Thanks for your help.
I got Allegro set up and it's working fine. Thanks for your help.
I said on my earlier post I was using the Dev C++ Compiler.RyanPridgeon wrote:In future let us know what compiler/IDE you're using.
- RyanPridgeon
- 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
Ah, sorry I didn't see that.Pennywise wrote:OK.
I got Allegro set up and it's working fine. Thanks for your help.I said on my earlier post I was using the Dev C++ Compiler.RyanPridgeon wrote:In future let us know what compiler/IDE you're using.
Btw Dev C++ is an IDE, your compiler is probably GNU GCC/G++
- Kros
- 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
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.RyanPridgeon wrote:Btw Dev C++ is an IDE, your compiler is probably GNU GCC/G++
YouTube ChannelIsaac Asimov wrote:Part of the inhumanity of the computer is that, once it is competently programmed and working smoothly, it is completely honest.
- Moosader
- 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
For future reference, I have written versions of most of my tutorials on my website. :PPennywise wrote:Thanks Bakkon. But the sound card on my computer don't work, so I can't here anything on youtube.
- Pennywise
- 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
Oh yeah
I didn't think before I posted. Sorry about that.
I didn't think before I posted. Sorry about that.