|
This thread is locked; no one can reply to it. |
1
2
|
Installing Allegro with Dev-C++ |
Fred Flagg
Member #6,993
March 2006
|
I have Dev-C++ 4.9.9.2 up and running. Now I want to compile/install Allegro to work with it. I have Allegro stored off in C:\Allegro. The link I found in this forum giving directions to do that is broken. Any ideas where I can go next to find out how to get Allegro and Dev-C to work together? |
Bob Keane
Member #7,342
June 2006
|
If you click on the tools icon, you should see a check for updates option. Selecting that will bring another screen, its been a while since I tried it, but the screen should be intuitive. You may have to change the website it searches. Once you make the connection, select the latest version of Allegro and download it. Then click on tools again, the last option should be the one you want (install devpaks?). You will see the Allegro devpak in the list. Select it and click the install button. By reading this sig, I, the reader, agree to render my soul to Bob Keane. I, the reader, understand this is a legally binding contract and freely render my soul. |
gnolam
Member #2,030
March 2002
|
Quote: The link I found in this forum giving directions to do that is broken. Any ideas where I can go next to find out how to get Allegro and Dev-C to work together? Allegro\docs\build\mingw32.txt It contains all the info you need. I'd advise against devpaks. -- |
Bob Keane
Member #7,342
June 2006
|
Come to think of it, the web update feature may install the package automatically. Good luck. By reading this sig, I, the reader, agree to render my soul to Bob Keane. I, the reader, understand this is a legally binding contract and freely render my soul. |
Bruce Fox
Member #7,301
May 2006
|
Select "devpaks.org" from the drop down list of the MENU>Tools>Check for Updates/Pacages. Then click Check For Updates. ========================= |
Lucid Nightmare
Member #5,982
July 2005
|
Check this out--- http://www.shamis.0nyx.com/install.html Two Golden Rules of life- Firstly, I'm always right and secondly, if you think otherwise, slap your face and read rule number one again! |
Bob Keane
Member #7,342
June 2006
|
After wasting an entire day, I found the solution. Quite simple, really.:-[ By reading this sig, I, the reader, agree to render my soul to Bob Keane. I, the reader, understand this is a legally binding contract and freely render my soul. |
ImLeftFooted
Member #3,935
October 2003
|
gnolam said: Allegro\docs\build\mingw32.txt It contains all the info you need. I'd advise against devpaks. I'd advise against compiling from source. The dev-cpp package updater contains everything you'd need to get allegro working. Lucid Nightmare said: Check this out--- http://www.shamis.0nyx.com/install.html I'd also like to reccomend you don't check out that link. Use the dev-cpp package updater. |
HoHo
Member #4,534
April 2004
|
I'd advise to first install Allegro via the dev-cpp package updater. __________ |
gnolam
Member #2,030
March 2002
|
Do you even get the examples with devpaks? -- |
miran
Member #2,407
June 2002
|
Quote: Do you even get the examples with devpaks? Yes. ...but it's a separate devpak. I think... -- |
Dark Logan
Member #7,313
June 2006
|
Quote: ...but it's a separate devpak. I think... Yes, it's the Allegro Supplement Package |
Thomas Fjellstrom
Member #476
June 2000
|
Cause as we all know, Supplement == Examples ~~~`````1~~~~!!!!!!! -- |
Vinny_CGR
Member #7,403
June 2006
|
I've used the package updater and it seem that the library isn't still working properly. |
Milan Mimica
Member #3,877
September 2003
|
int main() ?
-- |
Lucid Nightmare
Member #5,982
July 2005
|
Has someone even asked Fredd whether is he still stuck up with the installation problem or not... He just disappeared after starting the thread... Two Golden Rules of life- Firstly, I'm always right and secondly, if you think otherwise, slap your face and read rule number one again! |
David_at_wedu
Member #7,407
June 2006
|
Hi all, I too just started working with Dev-C++, and was in the process of making Allegro work with the IDE with little to no avail. While the library itself works -- my test "allegro_message()" call works, whenever I try to use any of the system variables like "extern int os_type," it keeps giving me the following compile error: Compiler: Default compiler Here is the code in my script: #include <allegro.h> At this point, I am at a loss for words. If it helps, I'm working on Windows XP Professional. I'm totally flustered and you guys are pretty much my last hope. |
Milan Mimica
Member #3,877
September 2003
|
Quote:
Compiler: Default compiler
edit:
-- |
Kitty Cat
Member #2,815
October 2002
|
Quote: Compilation successful What's the error? And you don't need to declare os_type, since allegro.h already does. And you may want to turn on warnings (you're trying to use %s (a string) with an int; that will more than likely crash, and definitely not do what you expect). -- |
David_at_wedu
Member #7,407
June 2006
|
D'oh... Stupid text didn't copy. Didn't realize... Here's the correct compile log text: Compiler: Default compiler Quote: And you don't need to declare os_type, since allegro.h already does. And you may want to turn on warnings (you're trying to use %s (a string) with an int; that will more than likely crash, and definitely not do what you expect). The only reason I was declaring os_type was because it said to in the book I'm reading for using Allegro. However, if this is true, what would be the proper printf() call to output the value? (As if you can't tell, I'm still a C newbie) |
LennyLen
Member #5,313
December 2004
|
David_at_wedu
Member #7,407
June 2006
|
Quote: printf("OS Version = %d\n", os_type); Thanks! I guess maybe I'll have to look a bit closer at what the book I'm reading says, because I was totally lost as to why I kept getting the compile errors (since the book told me to define extern int os_type). Being a newbie sucks. |
miran
Member #2,407
June 2002
|
Quote: since the book told me to define extern int os_type What's the title of the book? -- |
HoHo
Member #4,534
April 2004
|
Quote: What's the title of the book? Wanna bet it's called "Game programming all in one"? __________ |
miran
Member #2,407
June 2002
|
It was a rhetorical question. -- |
|
1
2
|