I want to make games in c++ but do not know what is the best option is. I am using code::Blocks on windows. I know there is visual studio express or add-ons to code::Blocks like allegro, openGL or driextX 9. could you explain what is the best and easiest option?
Pepsi or Coke? All of these libraries exist because different people have different tastes. What I'm trying to say is that it mostly comes down to personal preference. Some of them target slightly different things, so we would need to know more about what it is you're trying to accomplish. Is it 3D? 2D? 2.5D? Online multi player? Web based? etc.
No, you tell your IDE to add the directories those files already exist in to the projects search path. For Code::Blocks this is done under Project -> Build Options -> Search Directories.
EDIT: Header file paths go under the compiler tab and library paths go under linker.
You do have to download them first if that is what you are asking. I was trying to say that you don't copy and paste files into the directories of other libraries. There really isn't a reason not to, maybe there is a chance that two different files have the same name but otherwise it's just one of those things that you don't do.
The MingW one is already built for you compiler so that would be the least amount of work if you just want to get started. Knowing how to build libraries from their source code is a pretty important skill to have though.
ok I downloaded the MinGW 4.7.0 a put it where I want now all I need to do is Project -> Build Options -> Search Directories and add the complied file directory? C:\Program Files (x86)\allegro-5.0.10-mingw-4.7.0
The #include statement won't search the directory for you. You have to tell it what sub directory to look in for that header file, in this case that would be the folder entitled "include".
EDIT: To be clear, you need to change your statement to #include <include/alegro.h>
Code::Blocks keeps separate settings for the project. On the left you'll see a tree that says project, debug and build. This is because some libraries use different files between the debug and build versions. You need to add this directory to the search path of each of those profiles.