Code::Blocks Forums

User forums => Help => Topic started by: DarkChocobo on October 24, 2010, 08:47:28 pm

Title: Error running Allegro (Help! ><)
Post by: DarkChocobo on October 24, 2010, 08:47:28 pm
(At first of all, sorry for my bad English =[ )

Hi, i'm new to Allegro, so i have followed the guide "Setting up Allegro for Code::Blocks with MinGW on Windows XP/Vista" in the Allegro Wiki, but I got some trouble to running my project and decided to ask for help here. EDIT: I'm using Windows XP
I have download and install MinGW and changed the variable Path.(command 'gcc' in cmd.exe is working well). I also downloaded Allegro folder and unziped it in C:\ and directX in MinGW folder. The 'Compiler and debugger' of Code::Blocks is exactly like the image in the guide:
(http://wiki.allegro.cc/pub/7/74/Toolchains.png)

So I started a new project selecting Console Aplication and write my code, but when I try to compile it, it gives an error.(screenshots bellow)
(http://img203.imageshack.us/img203/6008/imagemevx.png)
-
(http://img3.imageshack.us/img3/3887/imagem2umi.png)
-
(http://img35.imageshack.us/img35/8610/imagem3al.png)
The exemple projects that follows with Allegro folder I downloaded in the wiki page gives the same error.

I also tried to compile my code with MinGW in IDE Dev-C++ but it also gives a similar error with 'ld.exe' file. T.T

I don't know what to do since I already have followed a lot of guides and tutorials to install Allegro and can't run it yet ¬¬
Rope someone can help.
Title: Re: Error running Allegro (Help! ><)
Post by: stahta01 on October 25, 2010, 12:49:29 am
Learn to Copy and Paste the error messages instead on using images!!!

Turn on Full Compiler Logging
http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F

Ask NON Code::Blocks questions somewhere other than here.

Tim S.
Title: Re: Error running Allegro (Help! ><)
Post by: DarkChocobo on October 25, 2010, 04:59:01 pm
Hi. I'm sorry for the images, I was afraid to miss something so I posted it with images.. will post in text next time.

I turned Compiler Logging to Full command line but stills giving errors with ld.exe file =(
follows the error log:

Code
File       Line     Message
ld.exe              cannot find crtbegin.o: No such file or directory
ld.exe              cannot find -lstdc++
ld.exe              cannot find -lgcc
ld.exe              cannot find -lgcc
ld.exe              cannot find crtend.o: No such file or directory


(i'm sorry for post in wrong section, hope someone can move it to the right place)
Title: Re: Error running Allegro (Help! ><)
Post by: Jenna on October 25, 2010, 05:20:25 pm
You did not post the build log, but the build messages.
The build log contains the "real" commandline used to invoke the compiler.