G++ Errors

Jacob Mansfield cyberjacob at gmail.com
Wed Feb 15 11:53:36 UTC 2012


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_main
main.cpp: In function ‘int _al_mangled_main()’:
main.cpp:16: error: ‘allegro_init’ was not declared in this scope
main.cpp:20: error: ‘install_keyboard’ was not declared in this scope
main.cpp:23: error: ‘GFX_AUTODETECT’ was not declared in this scope
main.cpp:23: error: ‘set_gfx_mode’ was not declared in this scope
main.cpp:24: error: ‘GFX_SAFE’ was not declared in this scope
main.cpp:25: error: ‘GFX_TEXT’ was not declared in this scope
main.cpp:26: error: ‘allegro_error’ was not declared in this scope
main.cpp:26: error: ‘allegro_message’ was not declared in this scope
main.cpp:32: error: ‘desktop_palette’ was not declared in this scope
main.cpp:32: error: ‘set_palette’ was not declared in this scope
main.cpp:35: error: ‘screen’ was not declared in this scope
main.cpp:35: error: ‘makecol’ was not declared in this scope
main.cpp:35: error: ‘clear_to_color’ was not declared in this scope
main.cpp:41: error: ‘acquire_screen’ was not declared in this scope
main.cpp:44: error: ‘font’ was not declared in this scope
main.cpp:44: error: ‘SCREEN_W’ was not declared in this scope
main.cpp:44: error: ‘SCREEN_H’ was not declared in this scope
main.cpp:44: error: ‘textout_centre_ex’ was not declared in this scope
main.cpp:47: error: ‘release_screen’ was not declared in this scope
main.cpp:50: error: ‘readkey’ was not declared in this scope
main.cpp: At global scope:
main.cpp:55: error: expected constructor, destructor, or type conversion at end of input
Chell:allegro1 user$ g++ --info
i686-g++-4.2.1: no input files
Chell:allegro1 user$ 

I can provide the source code if needed.
thanks!
 			JACOB MANSFIELD / Lead Developer
Blue Sapphire Media
email:  Jacob at bluesapphiremedia.co.uk
skype:  jacob.mansfield 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20120215/fb6f7bea/attachment.html>


More information about the ubuntu-users mailing list