User forums > Help
Codeblocks and allegro
download123:
how do you mean include ??
I tried so far :
Project -> build options -> directories
but it doesn't work :(
only my first test worked :-(
Please help
download123:
I'm sorry that I'm such a Noob but please help me ... I wont have to use an other program :(
Michael:
--- 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
Ceniza:
I would suggest you to follow the steps to compile allegro by yourself. It's quite simple and takes only a few minutes.
Download:
Allegro 4.2.0
DirectX 7 SDK Minimal version for Allegro
Quick steps:
Decompress Allegro somewhere.
Decompress DirectX 7 SDK Minimal into the MinGW folder (overwriting files).
Add an environment variable named MINGDIR pointing to your MinGW folder.
Open a console (cmd or command.com depending on your Windows version).
cd into the folder you decompressed Allegro.
cd allegro
fix mingw32
make
make install
Now all you need when creating a project that uses allegro is going to Project -> Build options. There click on the Linker tab. Now add alleg to the Link libraries.
You can also try with the steps provided here.
If you have problems related to Allegro itself post them here.
download123:
.. I though that I've allready installed allegro with a dev-pack...
but if I try to compile a Code [that I've written in dev-c++]
there were a few errors
for exemple
conflicting declaration 'typdef struct tagBITMAP BITMAP'
'BITMAP' has a previous declaration as 'typdef struct tagBITMAP BITMAP'
this error message 6-7 times
after that 6-7 messages
'textout_ex' undeclare (first use in this funktion)
and a other questin
what is the MinGW folder (i've installed MinGW with codeblocks)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version