Allegro.cc - Online Community

Allegro.cc Forums » Installation, Setup & Configuration » Difficulties to installing Code Blocks and allegro 5

This thread is locked; no one can reply to it. rss feed Print
Difficulties to installing Code Blocks and allegro 5
Gabriel Campos
Member #12,034
June 2010
avatar

As I read here in this forum, the allegro 5 and code blocks are perfecty because they are updated.... good...

But i cant run code blocks... very frustating...when i try to compile, even a simple code...

#include <stdio.h>

int main()
{
   printf("WORKS");
}

it doesnt compile and says that could not build, maybe the path is not setup correctly....and get worst when i try to install allegro 5... :-[ >:(

I tried some tutorials but nothing changed...
Can someone help me???

William Labbett
Member #4,486
March 2004
avatar

What does the compiler say exactly ?

Did code::blocks detect your compiler ?

Paul whoknows
Member #5,081
September 2004
avatar

Did you donwload the bundle version with the compiler included or just the IDE?

____

"The unlimited potential has been replaced by the concrete reality of what I programmed today." - Jordan Mechner.

AMCerasoli
Member #11,955
May 2010
avatar

Didn't you notice that there is a "Installation, Setup & Configuration" section in this forum?

Gabriel Campos
Member #12,034
June 2010
avatar

I Download the binary release in codeblocks.org.....(codeblocks-10.05mingw-setup.exe)

After installed i followed this tutorial:
https://sites.google.com/a/liesenberg.biz/cjogos/home/software/ambiente-code-blocks-allegro-5

but only the first part( not installed allegro 5 yet);
The tutorial says to create a variable in system properties with the name
MINGDIR, the value C:\CodeBlocks\MinGW

then in the path variable add to the end of line: ;C:\CodeBlocks\MinGW\bin...

then in cmd write: gcc -v.... Works nicely, it showed me the version 4.1

but when i create a empty project like this...

#include <stdio.h>

int main()
{
  printf("WORKS");
}

It doesnt work ???

The build log says:
"TESTE - Debug" uses an invalid compiler. Probably the toolchain path within the compiler options is not setup correctly?! Skipping...
Nothing to be done.

Someone could help me or link me a good tutorial??
I use the codeblocks 10.05 in my notebook with windows 7...
thanx

J-Gamer
Member #12,491
January 2011
avatar

That means that your compiler setup in Code::Blocks isn't setup correctly.

Try going to settings->compiler and debugger. Then open the tab Toolchain executables. What do you get in there?

" There are plenty of wonderful ideas in The Bible, but God isn't one of them." - Derezo
"If your body was a business, thought would be like micro-management and emotions would be like macro-management. If you primarily live your life with emotions, then you are prone to error on the details. If you over-think things all the time you tend to lose scope of priorities." - Mark Oates

Turbine
Member #13,178
August 2011

I'd suggest you download the latest versions of C::B and Mingw.
10.05 is quite old with a ton of bugs, the nighties are generally a lot more stable, plus new/fixed features.

http://sourceforge.net/projects/mingw/files/
http://forums.codeblocks.org/index.php/board,20.0.html

By the time you've installed MinGW, then opened Codeblocks, It'll work fine. (And you'll be up to date)

AMCerasoli
Member #11,955
May 2010
avatar

What is the problem with the official version?: Windows, Code::Blocks 10.05 and Allegro 5.

Tell me if you don't understand something about that tutorial.

Edgar Reynaldo
Member #8,592
May 2007
avatar

Do what J-Gamer suggested, and then press the auto detect compiler button. See if it finds your compiler correctly.

Go to: