Skip to main content

Thread: Compiler Error: undefined reference to `_install_allegro_version_check'


when compiling using g++ , allegro library following errors. understand file has linked can't identity on , how to. please guide me.

code:
theta@boolean:~/c/simchamp$ g++ test.cpp -o test.o  /tmp/ccoo7ris.o: in function `main':  test.cpp:(.text+0x8e): undefined reference `_install_allegro_version_check'  test.cpp:(.text+0xcf): undefined reference `set_gfx_mode'  test.cpp:(.text+0x104): undefined reference `set_gfx_mode'  test.cpp:(.text+0x139): undefined reference `set_gfx_mode'  test.cpp:(.text+0x141): undefined reference `allegro_error'  test.cpp:(.text+0x14d): undefined reference `allegro_message'  test.cpp:(.text+0x172): undefined reference `makecol'  test.cpp:(.text+0x178): undefined reference `font'  test.cpp:(.text+0x17e): undefined reference `screen'  test.cpp:(.text+0x1ae): undefined reference `textprintf_ex'  collect2: ld returned 1 exit status
thanks in advance help!

try:

code:
g++ test.cpp -lalleg -o test.o


Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Packaging and Compiling Programs Compiler Error: undefined reference to `_install_allegro_version_check'


Ubuntu

Comments

Popular posts from this blog

Convierte tu Raspberry en un NAS. Firmware fvdw-sl 15.3 - Raspberry Pi Forums

How to format a Get Request

avrdude: verification error, first mismatch at byte 0x0000 0x0c != 0x62