I'm using NetBeans IDE 6.5.1 with MinGW installed. Recently, I tried installing allegro library by downloading the pre-built binary. According to the installation instructions, all I have to do is to copy the lib and include folders of allegro into the base directory of MinGW which is C:\MinGW. This would place the contents into the respective lib and include folders of MinGW. I also placed the 3 allegro dll files into C:\Windows\System32 as instructed. However, building a project based on allegro functions return undefined references errors. I tried putting 'allegro-config --libs --static' in the project linker options. The undefined references erros were not present during the build process but instead, an error saying allegro-config file or directory not found. Did I fail to install the library? I'm new to c++ and I'm not familiar with installing via the source files of allegro.
I'm not sure what the 'allegro-config --libs --static' does. It was a solution posted by someone in the NetBeans forums which worked for the person asking the question. Not for me though. However, I've successfully configured allegro. My IDE now detects the new library. I linked my project to the liballeg.a file found in the lib folder. I'm now started with the allegro tutorial. Thank you for looking through this post anyway. I've been stuck at it since Monday.