|
DevCpp Allegro Error |
skaterkid
Member #8,047
November 2006
|
OK well I am using Dev-Cpp version 4.9.9.2 and I just downloaded the Allegro library and installed it from the Dev-Cpp Server. For some reason though, every time I try to compile a program such as:
I get this error message: cannot find -lobjc Did I install the library wrong? can someone please help? And my apologies if someone has posted this question before. |
kazzmir
Member #1,786
December 2001
|
Do you have dev-cpp set to compile programs as objective-C? I wasnt sure this is even possible but that what Im guessing '-lobjc' is for. Can you change the "language setting" to C or C++? |
skaterkid
Member #8,047
November 2006
|
Ah sorry about that my compiler wasn't compiling properly. I re-downloaded Dev, but I am still faced with an error when I compile the code. Now i get: [Linker error] undefined reference to `_imp__allegro_id' Do you have any suggestions for that error? |
LennyLen
Member #5,313
December 2004
|
You need to link to the Allegro library. To do this, go to the Project Options, and under the Parameters tab, click "Add library or object." The Allegro library will be in the MinGW\lib directory and is named liballeg.a.
|
asamsharaz
Member #7,831
October 2006
|
I installed DevCPP yesterday and got it all running and working with Allegro!!! thank you guys for helping me!!! I found it much easier to just download and install the DevPak for allegro. I've also downloaded numerous other devpaks from devpaks.org such as AllegroGL, Irrlicht, Openlayer and can't wait to get my hands dirty again programming!!! |
skaterkid
Member #8,047
November 2006
|
Oh thanks guys it works! Just a quick question, I don't need any other special applications to program graphics do I? should be good to go right? |
asamsharaz
Member #7,831
October 2006
|
You shouldn't need anything else, you can load and manipulate images in your program using the Allegro library, once you start getting into more complexed stuff you can download various libraries and devpaks for use in devcpp Asam |
skaterkid
Member #8,047
November 2006
|
Awesome thanks for the help guys I really appreciate it! |
|