Allegro Linker Error Undefined Reference
Contents |
Posted on 11/30/2006 8:27 PM 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 linker error undefined reference to __chkstk_ms' though, every time I try to compile a program such as:1#include
Linker Error Undefined Reference To Function
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 Posted on 11/30/2006 11:39 PM 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 linker error undefined reference to __cpu_features_init error] undefined reference to `_imp__allegro_id' [Linker error] undefined reference to `allegro_message' [Linker error] undefined reference to `_get_allegro_version' [Linker error] undefined reference to `get_config_text' [Linker error] undefined reference to `_imp__allegro_error' [Linker error] undefined reference to `ustrzcpy' [Linker error] undefined reference to `_install_allegro' [Linker error] undefined reference to `_WinMain' ld returned 1 exit status Do you have any suggestions for that error? LennyLen Member #5,313 December 2004 Posted on 12/01/2006 12:35 AM 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 Posted on 12/01/2006 4:00 AM 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 Posted on 12/01/2006 8:10 AM Oh thanks guys it works! Just a quick question, I don't need any other special applications to progra
get tips & solutions from a community of 418,418 IT Pros & Developers. It's quick & easy. allegro newbie error 100+ P: 134 lumpybanana247 I'm guessing this is a stupid question, but this won't compile in Dev-C++(Bloodshed) Expand|Select|Wrap|Line Numbers #include
Get Kubuntu Get Xubuntu Get Lubuntu Get UbuntuStudio Get Mythbuntu Get Edubuntu Get Ubuntu-GNOME https://ubuntuforums.org/showthread.php?t=1872059 Get UbuntuKylin Ubuntu Code of Conduct Ubuntu Wiki Community Wiki http://www.hardware.com.br/comunidade/linker-error/900034/ Other Support Launchpad Answers Ubuntu IRC Support AskUbuntu Official Documentation User Documentation Social Media Facebook Twitter Useful Links Distrowatch Bugs: Ubuntu PPAs: Ubuntu Web Upd8: Ubuntu OMG! Ubuntu Ubuntu Insights Planet Ubuntu Activity Page Please read before SSO login Advanced Search linker error Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Packaging and Compiling Programs weird linker error with allegro Having an Issue With Posting ? Do you want to help us debug the posting issues ? < is the place to report it, thanks ! Results 1 to 4 of 4 linker error undefined Thread: weird linker error with allegro Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode October 30th, 2011 #1 orenwatson View Profile View Forum Posts Private Message First Cup of Ubuntu Join Date Oct 2011 Beans 2 weird linker error with allegro I just upgraded to 11.10, and my program no longer compiles due to a linker error. My compile command is: Code: gcc -L/usr/local/lib -lalleg -Wall -Wextra -o rktboytris rktboytris.c It gives me the following errors: Code: rktboytris.c: In function ‘draw_block_back’: rktboytris.c:313:26: warning: unused parameter ‘f’ [-Wunused-parameter] /tmp/ccdqUR0M.o: In function `vline': rktboytris.c:(.text+0x29): undefined reference to `_allegro_vline' /tmp/ccdqUR0M.o: In function `hline': rktboytris.c:(.text+0x58): undefined reference to `_allegro_hline' /tmp/ccdqUR0M.o: In function `input_box': rktboytris.c:(.text+0xe9): undefined reference to `clear_keybuf' rktboytris.c:(.text+0x144): undefined reference to `keypressed' rktboytris.c:(.text+0x151): undefined reference to `readkey' rktboytris.c:(.text+0x25d): undefined reference to `screen' rktboytris.c:(.text+0x265): undefined reference to `screen' rktboytris.c:(.text+0x26d): undefined reference to `screen' rktboytris.c:(.text+
que crio, qndo tento compila dá o seguinte erro: [Linker error] undefined reference to `_install_allegro_version_check' [Linker error] undefined reference to `install_keyboard' [Linker error] undefined reference to `set_color_depth' [Linker error] undefined reference to `set_gfx_mode' [Linker error] undefined reference to `_imp__gfx_driver' [Linker error] undefined reference to `_imp__gfx_driver' [Linker error] undefined reference to `_imp__gfx_driver' [Linker error] undefined reference to `create_bitmap' [Linker error] undefined reference to `_imp__gfx_driver' [Linker error] undefined reference to `_imp__key' [Linker error] undefined reference to `vsync' [Linker error] undefined reference to `_imp__screen' [Linker error] undefined reference to `blit' [Linker error] undefined reference to `destroy_bitmap' [Linker error] undefined reference to `allegro_exit' e outros e esses são todos comandos que usei no programa. mcv Agosto 30, 2008 Você não está linkando com as bibliotecas do allegro. Faz tempo que não uso o dev, mas ele deve ter uma opção de abrir um projeto allegro quando você abre um novo projeto. Tudo virá confugurado. Se sua versão de dev não tem essa opção, terá que fazer na mão, vá nas opções de compilação e passe a lib para o linker. serenot Agosto 30, 2008 Obrigado! consegui, estava somente criando o projeto errado...Vlw! Fóruns Site do Hardware Menu © 1999-2014 Hardware.com.br e Rádio e Televisão Record S/A. Todos os direitos reservados. Melhores Tópicos