Skip to main content
Post Closed as "Not suitable for this site" by CommunityBot
edited tags
Link
user1430
user1430
cleaned up code and post further, removed extraneous '9's from previous edit.
Source Link

I am currently learning about game development tools and decided to use Allegro and OpenGL for starters. I've run into some problems in getting examples to compile though. It seems the allergro.h library isn't linking correctly. Some web searching didn't help.

Here's my example code:

#include <stdio.h>
#include <allegro.h>

int main()
{
9allegro_init    allegro_init();
9etc    //...
 
9
9return    return 0;
}
END_OF_MAIN();

I'm running this command to compile it:

g++ allegroTemplate.cpp -o allegroTemplate

g++ allegroTemplate.cpp -o allegroTemplate

This is the error I'm getting:

/tmp/ccbpAXIY.o: In function `main':
allegroTemplate.cpp:(.text+0x2a): undefined reference to `_install_allegro_version_check'
collect2: ld returned 1 exit status

I'm running this in Ubuntu.

I am currently learning about game development tools and decided to use Allegro and OpenGL for starters. I've run into some problems in getting examples to compile though. It seems the allergro.h library isn't linking correctly. Some web searching didn't help.

Here's my example code:

#include <stdio.h>
#include <allegro.h>

int main()
{
9allegro_init();
9etc...
 
9
9return 0;
}
END_OF_MAIN();

I'm running this command to compile it:

g++ allegroTemplate.cpp -o allegroTemplate

This is the error I'm getting:

/tmp/ccbpAXIY.o: In function `main':
allegroTemplate.cpp:(.text+0x2a): undefined reference to `_install_allegro_version_check'
collect2: ld returned 1 exit status

I'm running this in Ubuntu.

I am currently learning about game development tools and decided to use Allegro and OpenGL for starters. I've run into some problems in getting examples to compile though. It seems the allergro.h library isn't linking correctly. Some web searching didn't help.

Here's my example code:

#include <stdio.h>
#include <allegro.h>

int main()
{
    allegro_init();
    //...
    return 0;
}
END_OF_MAIN();

I'm running this command to compile it:

g++ allegroTemplate.cpp -o allegroTemplate

This is the error I'm getting:

/tmp/ccbpAXIY.o: In function `main':
allegroTemplate.cpp:(.text+0x2a): undefined reference to `_install_allegro_version_check'
collect2: ld returned 1 exit status

I'm running this in Ubuntu.

Improved title. Code formatting. Grammar. Condensed.
Source Link
Anko
  • 13.5k
  • 10
  • 56
  • 82

Allegro and OpenGl Linking error in geany (ubuntu)when compiling Allegro example

I am currently attempting to learnlearning about different game development tools and I decided to use Allegro and OpenGL for starters. But it ranI've run into some problems, I cant seem in getting examples to link the allergrocompile though.h It seems the allergro.h library isn't linking correctly or maybe there is some underlying problem i dont understand yet. I have tried google, Allegro.cc, VideoTutorialsRocks.com to solve my problem but no Some web searching didn't help.

/---------------------- Here's my example code sample --------------------------

#include <stdio.h> #include <allegro.h>

int main() { allegro_init(); etc...:

return#include <stdio.h>
#include <allegro.h>

int main()
{
9allegro_init();
9etc...

9
9return 0;
}
END_OF_MAIN();

} END_OF_MAIN();

/------------------------ my I'm running this command ----------------------to compile it:

g++ allegroTemplate.cpp -o allegroTemplate

g++ allegroTemplate.cpp -o allegroTemplate

/------------------ my This is the error ----------------------

/tmp/ccbpAXIY.o: In function main': allegroTemplate.cpp:(.text+0x2a): undefined reference to _install_allegro_version_check' collect2I'm getting: ld returned 1 exit status

/tmp/ccbpAXIY.o: In function `main':
allegroTemplate.cpp:(.text+0x2a): undefined reference to `_install_allegro_version_check'
collect2: ld returned 1 exit status

//--------------- Thanks for reading ----------------- I'm running this in Ubuntu.

Allegro and OpenGl Linking error in geany (ubuntu)

I am currently attempting to learn about different game development tools and I decided to use Allegro and OpenGL for starters. But it ran into some problems, I cant seem to link the allergro.h library correctly or maybe there is some underlying problem i dont understand yet. I have tried google, Allegro.cc, VideoTutorialsRocks.com to solve my problem but no help.

/---------------------- my code sample --------------------------

#include <stdio.h> #include <allegro.h>

int main() { allegro_init(); etc...

return 0;

} END_OF_MAIN();

/------------------------ my command ----------------------

g++ allegroTemplate.cpp -o allegroTemplate

/------------------ my error ----------------------

/tmp/ccbpAXIY.o: In function main': allegroTemplate.cpp:(.text+0x2a): undefined reference to _install_allegro_version_check' collect2: ld returned 1 exit status

//--------------- Thanks for reading -----------------

Linking error when compiling Allegro example

I am currently learning about game development tools and decided to use Allegro and OpenGL for starters. I've run into some problems in getting examples to compile though. It seems the allergro.h library isn't linking correctly. Some web searching didn't help.

Here's my example code:

#include <stdio.h>
#include <allegro.h>

int main()
{
9allegro_init();
9etc...

9
9return 0;
}
END_OF_MAIN();

I'm running this command to compile it:

g++ allegroTemplate.cpp -o allegroTemplate

This is the error I'm getting:

/tmp/ccbpAXIY.o: In function `main':
allegroTemplate.cpp:(.text+0x2a): undefined reference to `_install_allegro_version_check'
collect2: ld returned 1 exit status

I'm running this in Ubuntu.

Source Link
Loading