Hi Guys,I'm not sure if this is a ubuntu specific problem, but I'm having some errors compiling c++ programs with g++.here's the errors I'm getting:
Chell:allegro1 user$ g++ -c main.cpp -o Untitled2.o -I/usr/local/include/ -lallegro -lallegro_mainmain.cpp: In function ‘int _al_mangled_main()’:main.cpp:16: error: ‘allegro_init’ was not declared in this scopemain.cpp:20: error: ‘install_keyboard’ was not declared in this scopemain.cpp:23: error: ‘GFX_AUTODETECT’ was not declared in this scopemain.cpp:23: error: ‘set_gfx_mode’ was not declared in this scopemain.cpp:24: error: ‘GFX_SAFE’ was not declared in this scopemain.cpp:25: error: ‘GFX_TEXT’ was not declared in this scopemain.cpp:26: error: ‘allegro_error’ was not declared in this scopemain.cpp:26: error: ‘allegro_message’ was not declared in this scopemain.cpp:32: error: ‘desktop_palette’ was not declared in this scopemain.cpp:32: error: ‘set_palette’ was not declared in this scopemain.cpp:35: error: ‘screen’ was not declared in this scopemain.cpp:35: error: ‘makecol’ was not declared in this scopemain.cpp:35: error: ‘clear_to_color’ was not declared in this scopemain.cpp:41: error: ‘acquire_screen’ was not declared in this scopemain.cpp:44: error: ‘font’ was not declared in this scopemain.cpp:44: error: ‘SCREEN_W’ was not declared in this scopemain.cpp:44: error: ‘SCREEN_H’ was not declared in this scopemain.cpp:44: error: ‘textout_centre_ex’ was not declared in this scopemain.cpp:47: error: ‘release_screen’ was not declared in this scopemain.cpp:50: error: ‘readkey’ was not declared in this scopemain.cpp: At global scope:main.cpp:55: error: expected constructor, destructor, or type conversion at end of inputChell:allegro1 user$ g++ --infoi686-g++-4.2.1: no input filesChell:allegro1 user$Â*
I can provide the source code if needed.thanks!
Jacob MansfieldÂ*/Â*Lead Developer
Blue Sapphire Media
email:Â*Â*Jacob@bluesapphiremedia.co.uk
skype:Â*Â*jacob.mansfieldÂ*
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users