![]() |
|
Dev C++ problem |
Omikron
Member #1,413
February 2001
|
OK, so I just downloaded Dev C++ and installed it, in C:\Dev C++. Then I downloaded Allegro 3.9.35, and it's at C:\Dev C++\Allegro. When compiling, I get this error message: |
Omikron
Member #1,413
February 2001
|
Solved a part of it myself, just moved allegro.h, winalleg.h, linalleg.h and bealleg.h to C:\Dev C++\Include, and did this: Whyyyy? |
Omikron
Member #1,413
February 2001
|
No need to reply on that one, got around it... New problem though |
Jeremias Raziel
Member #581
August 2000
|
random isn't a math.h function, it's a standard lib function (at least i think so) |
Omikron
Member #1,413
February 2001
|
Umm..... I already have MingW32 at C:\MingW32. Do I need to do anything with it, except from installing? (Already done) |
Gabhonga
Member #1,247
February 2001
![]() |
indeed: -------------------------------------------------------- |
SystemDown
Member #663
September 2000
![]() |
AFAIK, random() is not an ANSI C function.
--- |
SystemDown
Member #663
September 2000
![]() |
oops.. it should've read "pseudo random number generator"
--- |
Omikron
Member #1,413
February 2001
|
So....I have included ctime (I'm using C++). Instead of this function... |
SystemDown
Member #663
September 2000
![]() |
Omikron, all I've done is replace random() with rand() in your function:
--- |
Omikron
Member #1,413
February 2001
|
Thanks SystemDown, it almost works now |
SystemDown
Member #663
September 2000
![]() |
Well i'm glad you've got the random bit figured out now
--- |
Omikron
Member #1,413
February 2001
|
Umm, where should the -lalleg part be? |
Ivko
Member #818
December 2000
![]() |
Ugh, hasn't anyone noticed that it should be #include <allegro.h> not #include "allegro.h"? |
Ivko
Member #818
December 2000
![]() |
-lalleg should be at the end of your command line. |
Omikron
Member #1,413
February 2001
|
"allegro.h", <allegro.h>, no difference. |
vortex
Member #1,206
April 2001
|
There is a difference ...Virtually Opened Reality To Eternal eXploring... |
Cage
Member #1,277
March 2001
|
I'm about to start using Dev-C++ and these problems sound troubling... (right now I use DJGPP) I think Omikron's problem, there should probably be a menu option for "include" or "library include" or something (there is in DJGPP) you should just (okay, this is from DJGPP, please excuse me if it isn't quite right, I'll have Dev-C++ tomorrow) find one of the boxes and type in "alleg" without the quotes and check the box next to it or something... i'll have a detailed runthrough for you tomorrow.
----- |
SystemDown
Member #663
September 2000
![]() |
Sorry Omikron.. I thought you were using plain mingw32 and not Dev-C++.
--- |
snake eyes
Member #933
January 2001
|
I am using dev-c++ right now myself. The only version of allegro I ever managed to get to compile is 3.9.3.2. If you manage to get 3.9.3.5 compiled successfully with it I woould appreciate you letting me know how you did it! snake eyes |
Omikron
Member #1,413
February 2001
|
First of all, thanks everyone who replied! |
Cage
Member #1,277
March 2001
|
Okay, Omikron, you should add this line to the end of your autoexec.bat file: just substitute whatever directory you installed into for dev-c++. But I have a problem: It pops up in a little window. Is there anyone out there who managed to properly install allegro for Dev-C++ and if so, how did you do it? And Omikron, I don't think you have to delete all your DJGPP stuff. PLEASE HELP!!!!!!
----- |
|