| brandan (2) | |||
|
I'm trying to learn to use allegro. I'm using dev c++. I get bunch of linker errors Saying: [Linker error] undefined reference to `install_keyboard' [Linker error] undefined reference to `set_gfx_mode' [Linker error] undefined reference to `readkey' and lots others This is the code.
| |||
|
|
|||
| Stewbond (1843) | |
|
You've included the allegro header, but have you linked to the library? You need to find the linker settings in your IDE and ensure that you are linking to the library file. If that's not easy, then switch compilers. Dev C++ is terrible (although I've heard that it was finally updated lately). | |
|
|
|
| brandan (2) | |
| What compiler do you think I should use? | |
|
|
|
| Antares64 (7) | |
| as Stewbond says, you have to make sure you link to the allegro library (.lib) file. I'd strongly recommend you switch to Microsoft Visual C++ Express 2010, It is the most advanced compiler currently, doesn't have all the bugs that DevCPP does and also ITS FREE!. You can download it from here: http://www.microsoft.com/visualstudio/eng/downloads . Remeber, choose the EXPRESS one, not the professional because that version is not free. Believe me, I've worked with DevCpp before and I got a lot of errors I couldn't solve. Then I found out that my program was not wrong, but the compiler Was. | |
|
|
|
| Stewbond (1843) | |
| Code::Blocks is another good one with MinGW. Also free. | |
|
Last edited on
|
|