User forums > Help

Codeblocks and allegro

<< < (4/4)

Michael:

--- Quote from: download123 on March 02, 2006, 08:26:55 pm ---and I can't load the last nightly because "Too many clients for /codeblocks/CB_20060301_rev2102_win32.7z"

--- End quote ---

May be you can wait a bit and re-try. Personally, I compile C::B myself. It is not so difficult and it is worth :).

Best wishes,
Michael

Ceniza:
About the textout_ex function undeclared it's because that function was introduced somewhere in Allegro 4.1.x, and 4.2.0 inherited it. That would mean the package you got is surely Allegro 4.0.x or a very old 4.1.x.

The conflicting declaration of BITMAP is because of Windows headers. If you don't include a Windows header with 4.2.0 it shouldn't complain AFAIK, but if you really need to include a Windows header be sure to include them in this order:


--- Code: (cpp) ---#include <allegro.h>
#include <winalleg.h>
#include <windows.h> // or the Windows header you need
--- End code ---

And also add in Project -> Build options, Compiler, #defines:


--- Code: (cpp) ---__GTHREAD_HIDE_WIN32API
--- End code ---

download123:

--- Quote from: Michael on March 02, 2006, 08:54:42 pm ---
Before, I forget, you should also download and install gdb 6.3.2, if you want to debug your applications.

Best wishes,
Michael


--- End quote ---

where can i get gdb 6.3.2??

yop:
http://www.mingw.org/download.shtml

Gardian:

--- Quote from: Michael on March 02, 2006, 06:05:35 pm ---
--- Quote from: download123 on March 02, 2006, 05:55:34 pm ---I'm sorry that I'm such a Noob but please help me ... I wont have to use an other program  :(

--- End quote ---

Sorry, but I do not have fully understood which problems do you have. Anyway, to use Allegro or any other library, you should include the path to the include files and the path to the libraries in:

Project-->Build options-->Directories-->Compiler //for the include files
Project-->Build options-->Directories-->Link //for the libraries

Moreover, in Project-->Build options-->Linker, you should added the libraries you need.

Hope this help a bit.

Best wishes,
Michael


--- End quote ---
I did this, and now i am getting, not an error saying that the commandsdon't exist or the .h files don't exist, but that that projects main.o file dosent exist, how do i fix this?

Navigation

[0] Message Index

[*] Previous page

Go to full version