|
What is still to be done? |
SNES4EVER
Member #7,564
July 2006
|
Well, I think I've done everything as said in the document how to build up allegro using regards, |
miran
Member #2,407
June 2002
|
There is no allegro.zip. There is an allegro-4.2.0.zip though. You extract it wherever you want. Then you go to allegro/docs/build and read mingw32.txt. -- |
SNES4EVER
Member #7,564
July 2006
|
Well, you're right, but I just didn't remember how the zip-folder of allegro was called. regards, |
miran
Member #2,407
June 2002
|
You don't start Allegro. Allegro is not a program. Allegro is a programming library intended for making games and other multimedia applications. You link it with programs you write and compile: 1. Include <allegro.h> in your code. -- |
SNES4EVER
Member #7,564
July 2006
|
Well, I just started with this book about allegro. regards, |
miran
Member #2,407
June 2002
|
You write code in a text editor (for example Notepad). There are many text editors that are better than Notepad though, because they are specialized for writing code. They print parts of the code in different colours, they format the code, they show you function parameters and auto-complete function names as you type them, and so on. Personally I use a program called SciTE for this, but there are many more. To compile the code and create an exe you need a compiler. Because Allegro is a C library, you need to write the code in the language of C (or C++). To compile C code you need a C compiler and to compile C++ code you need a C++ compiler. Turbopascal is a Pascal compiler, so it won't do. A popular compiler for C and C++ in Windows is called MinGW. You need to get it! Once you have it installed on your system, you compile the code by runnin the "gcc" or "g++" program from the command line and give it all the right parameters (i.e. names of the source files, flags, name of the exe file, etc). You can also write a makefile that automates this process so you don't type the same command every time you need to compile. There are also programs which combine a text editor and compiler (and other tools) in one complete package. Such a package is called "Integrated Development Environment" or IDE for short. One popular IDE for Windows is Dev-C++. Another popular, but a commercial one you need to pay money for, is called MS Visual Studio. So get one of those if you don't want to use a simple text editor and command line interface. -- |
Arthur Kalliokoski
Second in Command
February 2005
|
You can still get Visual C for free until end of November (you have to download the SDK as well). I got it a few months ago and it works, although I prefer MingW. http://msdn.microsoft.com/vstudio/express/visualC/default.aspx They all watch too much MSNBC... they get ideas. |
Dennis
Member #1,090
July 2003
|
Quote: You can still get Visual C for free until end of November Not just until the end of November: http://msdn.microsoft.com/vstudio/express/support/faq/#pricing (it's been made price-free permanently) --- 0xDB | @dennisbusch_de --- |
SNES4EVER
Member #7,564
July 2006
|
Thanks to miran. reagrds, |
HoHo
Member #4,534
April 2004
|
I'm sorry if this sounds rude but did you actually read the book? I know no other way to use Allegro than to write some code in text editor and compile it to executeable. __________ |
GullRaDriel
Member #3,861
September 2003
|
Hey, HoHo, you were not aware that allegro has a built-in neuronal game developping plugging ? That is the new Allegro Brain Utility System Evolution ! On Toppic, I just think the OP needs to read more about programming, compiling, linking, after what, with a few 'hello world' and other basis he will understand what you guys are trying to teach. "Code is like shit - it only smells if it is not yours" |
SNES4EVER
Member #7,564
July 2006
|
Well still got a little problem with compiling(and no, I haven't read the book till the end cause there is a step-by step how to do). The book told to save it as hallo.c and compile it with "gcc hallo.c -o hallo.exe". D:\Programme\MinGW\bin\gcc hallo.c -o hallo.exe How do I attach the place where I saved the text? |
LennyLen
Member #5,313
December 2004
|
Quote: D:\Programme\MinGW\bin\gcc hallo.c -o hallo.exe You need to call gcc from the directory that hallo.c is in. Quote: How do I attach the place where I saved the text? At the bottom of the text-window where you write your post is an "attachments" tab.
|
Thomas Fjellstrom
Member #476
June 2000
|
Quote: You need to call gcc from the directory that hallo.c is in. He did, he just used the full path to gcc, making me think its not installed properly. -- |
|