Start up Netbeans you should see a screen that looks like this:

Now select File->New Project and select C/C++ and then C/C++ application then press next

Enter in the name of the project and the location you want to put it and click finish

You should now see on the left hand side something like this you may need to expand your project

now right click on the Source Files and select New-> Empty C++ File then call the file what you want to call it and click finish

Now this next step you can either do right now or right before you build it. Ok go to file-> Project Properties it will pull up this window

The new file should look something like this

you now need to click on linker witch will bring up this

now click on the symbol by libraries that looks like this (...) and the window pulled up is this

Now click on the add option button then click on the other option and now the most important part open up a terminal and type in
allegro-config --libs --static

then put the output in the other option place and that should be it for configuring it

now we can put the code into the source file and then build and run and if it worked then you should see a blank black screen and push a key and it should end any problems or question please reply and I will do what I can to help.
#include <allegro.h>
int main()
{
allegro_init();
install_keyboard();
set_gfx_mode(GFX_AUTODETECT, 640, 480, 0, 0);
readkey();
return 0;
}
END_OF_MAIN();






MultiQuote




|