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.
thanks in advance help!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
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
Post a Comment