|
I have problem when I compile my little program |
MilanesaNapo
Member #16,150
January 2016
|
This is my little program, it basic but is something . #include <stdio.h> main() And here is my problem that i can't solve: [Linker error] undefined reference to `allegro_id' You now wich could be the problem? |
bamccaig
Member #7,536
July 2006
|
I'm not sure that Allegro 5 has an allegro_id. Searches all reference Allegro 4. A different, incompatible version of the library. There is an al_get_allegro_version function that returns a packed integer... I assume that would be similar in purpose. What is it that you wanted allegro_id for? -- acc.js | al4anim - Allegro 4 Animation library | Allegro 5 VS/NuGet Guide | Allegro.cc Mockup | Allegro.cc <code> Tag | Allegro 4 Timer Example (w/ Semaphores) | Allegro 5 "Winpkg" (MSVC readme) | Bambot | Blog | C++ STL Container Flowchart | Castopulence Software | Check Return Values | Derail? | Is This A Discussion? Flow Chart | Filesystem Hierarchy Standard | Clean Code Talks - Global State and Singletons | How To Use Header Files | GNU/Linux (Debian, Fedora, Gentoo) | rot (rot13, rot47, rotN) | Streaming |
GullRaDriel
Member #3,861
September 2003
|
Because you declared it extern. "Code is like shit - it only smells if it is not yours" |
MilanesaNapo
Member #16,150
January 2016
|
The problem is that i don't know what is the allegro_id, if it is a file that is missing or doesn't exist. I try with an example downloaded from web and it gave me the same problem. |
bamccaig
Member #7,536
July 2006
|
allegro_id does not exist in Allegro 5. Remove those two lines that reference it and move on. -- acc.js | al4anim - Allegro 4 Animation library | Allegro 5 VS/NuGet Guide | Allegro.cc Mockup | Allegro.cc <code> Tag | Allegro 4 Timer Example (w/ Semaphores) | Allegro 5 "Winpkg" (MSVC readme) | Bambot | Blog | C++ STL Container Flowchart | Castopulence Software | Check Return Values | Derail? | Is This A Discussion? Flow Chart | Filesystem Hierarchy Standard | Clean Code Talks - Global State and Singletons | How To Use Header Files | GNU/Linux (Debian, Fedora, Gentoo) | rot (rot13, rot47, rotN) | Streaming |
MilanesaNapo
Member #16,150
January 2016
|
ok, i am going to try it [EDIT 1] Okay,i try with another example but the error is the same. What do you recomend me to do? Thanks for your help and attention. |
SiegeLord
Member #7,827
October 2006
|
Your examples are for Allegro 4. Where are you getting them? Allegro 5 has some tutorials here: https://wiki.allegro.cc/index.php?title=Getting_Started#Tutorials "For in much wisdom is much grief: and he that increases knowledge increases sorrow."-Ecclesiastes 1:18 |
|