Código:
sudo aptitude install libsdl-image1.2-dev
sudo apt-get install libsdl-ttf2.0-dev
Y pues ya no me salen problemas con las librerias.
Ahora me sale esto...
Citar
root@datohost:/home/dato000/Documentos/c++/calculadora/calculadora# g++ Untitled1.cpp -o calc
/tmp/ccXQpwd2.o: In function `create_button(int, int, char const*, int, int)':
Untitled1.cpp:(.text+0xe): undefined reference to `IMG_Load'
Untitled1.cpp:(.text+0x5e): undefined reference to `TTF_OpenFont'
Untitled1.cpp:(.text+0x8c): undefined reference to `TTF_RenderText_Blended'
Untitled1.cpp:(.text+0xba): undefined reference to `TTF_RenderText_Blended'
Untitled1.cpp:(.text+0xe8): undefined reference to `TTF_RenderText_Blended'
Untitled1.cpp:(.text+0x116): undefined reference to `TTF_RenderText_Blended'
Untitled1.cpp:(.text+0x144): undefined reference to `TTF_RenderText_Blended'
Untitled1.cpp:(.text+0x16a): undefined reference to `SDL_UpperBlit'
Untitled1.cpp:(.text+0x18d): undefined reference to `SDL_UpperBlit'
Untitled1.cpp:(.text+0x19a): undefined reference to `SDL_Flip'
Untitled1.cpp:(.text+0x1a5): undefined reference to `SDL_FreeSurface'
Untitled1.cpp:(.text+0x1b0): undefined reference to `SDL_FreeSurface'
/tmp/ccXQpwd2.o: In function `create_label(int, int, char const*, int, int)':
Untitled1.cpp:(.text+0x1e5): undefined reference to `TTF_OpenFont'
Untitled1.cpp:(.text+0x213): undefined reference to `TTF_RenderText_Blended'
Untitled1.cpp:(.text+0x241): undefined reference to `TTF_RenderText_Blended'
Untitled1.cpp:(.text+0x26f): undefined reference to `TTF_RenderText_Blended'
Untitled1.cpp:(.text+0x29d): undefined reference to `TTF_RenderText_Blended'
Untitled1.cpp:(.text+0x2cb): undefined reference to `TTF_RenderText_Blended'
Untitled1.cpp:(.text+0x2f1): undefined reference to `SDL_UpperBlit'
Untitled1.cpp:(.text+0x2fe): undefined reference to `SDL_Flip'
Untitled1.cpp:(.text+0x309): undefined reference to `SDL_FreeSurface'
/tmp/ccXQpwd2.o: In function `create_texbox(int, int)':
Untitled1.cpp:(.text+0x337): undefined reference to `IMG_Load'
Untitled1.cpp:(.text+0x35d): undefined reference to `SDL_UpperBlit'
Untitled1.cpp:(.text+0x36a): undefined reference to `SDL_Flip'
Untitled1.cpp:(.text+0x375): undefined reference to `SDL_FreeSurface'
/tmp/ccXQpwd2.o: In function `SDL_printf(int, int, char const*, int, int)':
Untitled1.cpp:(.text+0x3aa): undefined reference to `TTF_OpenFont'
Untitled1.cpp:(.text+0x3d8): undefined reference to `TTF_RenderText_Blended'
Untitled1.cpp:(.text+0x406): undefined reference to `TTF_RenderText_Blended'
Untitled1.cpp:(.text+0x434): undefined reference to `TTF_RenderText_Blended'
Untitled1.cpp:(.text+0x462): undefined reference to `TTF_RenderText_Blended'
Untitled1.cpp:(.text+0x490): undefined reference to `TTF_RenderText_Blended'
Untitled1.cpp:(.text+0x4b6): undefined reference to `SDL_UpperBlit'
Untitled1.cpp:(.text+0x4c3): undefined reference to `SDL_Flip'
Untitled1.cpp:(.text+0x4ce): undefined reference to `SDL_FreeSurface'
/tmp/ccXQpwd2.o: In function `create_button_efecto(int, int)':
Untitled1.cpp:(.text+0x4fc): undefined reference to `IMG_Load'
Untitled1.cpp:(.text+0x522): undefined reference to `SDL_UpperBlit'
Untitled1.cpp:(.text+0x52f): undefined reference to `SDL_Flip'
Untitled1.cpp:(.text+0x53a): undefined reference to `SDL_FreeSurface'
/tmp/ccXQpwd2.o: In function `crear_pantalla(int, int, char const*, char const*)':
Untitled1.cpp:(.text+0x561): undefined reference to `SDL_Quit'
Untitled1.cpp:(.text+0x56b): undefined reference to `TTF_Init'
Untitled1.cpp:(.text+0x577): undefined reference to `SDL_Init'
Untitled1.cpp:(.text+0x582): undefined reference to `IMG_Load'
Untitled1.cpp:(.text+0x5a7): undefined reference to `SDL_SetVideoMode'
Untitled1.cpp:(.text+0x5bf): undefined reference to `SDL_WM_SetCaption'
Untitled1.cpp:(.text+0x5e2): undefined reference to `SDL_UpperBlit'
Untitled1.cpp:(.text+0x5ef): undefined reference to `SDL_Flip'
/tmp/ccXQpwd2.o: In function `cursor_atras(int, int)':
Untitled1.cpp:(.text+0x639): undefined reference to `SDL_MapRGB'
Untitled1.cpp:(.text+0x653): undefined reference to `SDL_FillRect'
Untitled1.cpp:(.text+0x695): undefined reference to `SDL_MapRGB'
Untitled1.cpp:(.text+0x6af): undefined reference to `SDL_FillRect'
Untitled1.cpp:(.text+0x6f4): undefined reference to `SDL_MapRGB'
Untitled1.cpp:(.text+0x70e): undefined reference to `SDL_FillRect'
Untitled1.cpp:(.text+0x71b): undefined reference to `SDL_Flip'
/tmp/ccXQpwd2.o: In function `cursor_negro(int, int)':
Untitled1.cpp:(.text+0x765): undefined reference to `SDL_MapRGB'
Untitled1.cpp:(.text+0x77f): undefined reference to `SDL_FillRect'
Untitled1.cpp:(.text+0x78c): undefined reference to `SDL_Flip'
/tmp/ccXQpwd2.o: In function `cursor_blanco(int, int)':
Untitled1.cpp:(.text+0x7d6): undefined reference to `SDL_MapRGB'
Untitled1.cpp:(.text+0x7f0): undefined reference to `SDL_FillRect'
Untitled1.cpp:(.text+0x7fd): undefined reference to `SDL_Flip'
/tmp/ccXQpwd2.o: In function `cursor(int, int)':
Untitled1.cpp:(.text+0x847): undefined reference to `SDL_MapRGB'
Untitled1.cpp:(.text+0x861): undefined reference to `SDL_FillRect'
Untitled1.cpp:(.text+0x86e): undefined reference to `SDL_Flip'
/tmp/ccXQpwd2.o: In function `accion_boton_nuevo_calculo()':
Untitled1.cpp:(.text+0xa7a): undefined reference to `SDL_Delay'
/tmp/ccXQpwd2.o: In function `accion_boton_sumar()':
Untitled1.cpp:(.text+0xb6e): undefined reference to `SDL_Delay'
/tmp/ccXQpwd2.o: In function `main':
Untitled1.cpp:(.text+0x1df6): undefined reference to `SDL_WaitEvent'
collect2: ld returned 1 exit status
/tmp/ccXQpwd2.o: In function `create_button(int, int, char const*, int, int)':
Untitled1.cpp:(.text+0xe): undefined reference to `IMG_Load'
Untitled1.cpp:(.text+0x5e): undefined reference to `TTF_OpenFont'
Untitled1.cpp:(.text+0x8c): undefined reference to `TTF_RenderText_Blended'
Untitled1.cpp:(.text+0xba): undefined reference to `TTF_RenderText_Blended'
Untitled1.cpp:(.text+0xe8): undefined reference to `TTF_RenderText_Blended'
Untitled1.cpp:(.text+0x116): undefined reference to `TTF_RenderText_Blended'
Untitled1.cpp:(.text+0x144): undefined reference to `TTF_RenderText_Blended'
Untitled1.cpp:(.text+0x16a): undefined reference to `SDL_UpperBlit'
Untitled1.cpp:(.text+0x18d): undefined reference to `SDL_UpperBlit'
Untitled1.cpp:(.text+0x19a): undefined reference to `SDL_Flip'
Untitled1.cpp:(.text+0x1a5): undefined reference to `SDL_FreeSurface'
Untitled1.cpp:(.text+0x1b0): undefined reference to `SDL_FreeSurface'
/tmp/ccXQpwd2.o: In function `create_label(int, int, char const*, int, int)':
Untitled1.cpp:(.text+0x1e5): undefined reference to `TTF_OpenFont'
Untitled1.cpp:(.text+0x213): undefined reference to `TTF_RenderText_Blended'
Untitled1.cpp:(.text+0x241): undefined reference to `TTF_RenderText_Blended'
Untitled1.cpp:(.text+0x26f): undefined reference to `TTF_RenderText_Blended'
Untitled1.cpp:(.text+0x29d): undefined reference to `TTF_RenderText_Blended'
Untitled1.cpp:(.text+0x2cb): undefined reference to `TTF_RenderText_Blended'
Untitled1.cpp:(.text+0x2f1): undefined reference to `SDL_UpperBlit'
Untitled1.cpp:(.text+0x2fe): undefined reference to `SDL_Flip'
Untitled1.cpp:(.text+0x309): undefined reference to `SDL_FreeSurface'
/tmp/ccXQpwd2.o: In function `create_texbox(int, int)':
Untitled1.cpp:(.text+0x337): undefined reference to `IMG_Load'
Untitled1.cpp:(.text+0x35d): undefined reference to `SDL_UpperBlit'
Untitled1.cpp:(.text+0x36a): undefined reference to `SDL_Flip'
Untitled1.cpp:(.text+0x375): undefined reference to `SDL_FreeSurface'
/tmp/ccXQpwd2.o: In function `SDL_printf(int, int, char const*, int, int)':
Untitled1.cpp:(.text+0x3aa): undefined reference to `TTF_OpenFont'
Untitled1.cpp:(.text+0x3d8): undefined reference to `TTF_RenderText_Blended'
Untitled1.cpp:(.text+0x406): undefined reference to `TTF_RenderText_Blended'
Untitled1.cpp:(.text+0x434): undefined reference to `TTF_RenderText_Blended'
Untitled1.cpp:(.text+0x462): undefined reference to `TTF_RenderText_Blended'
Untitled1.cpp:(.text+0x490): undefined reference to `TTF_RenderText_Blended'
Untitled1.cpp:(.text+0x4b6): undefined reference to `SDL_UpperBlit'
Untitled1.cpp:(.text+0x4c3): undefined reference to `SDL_Flip'
Untitled1.cpp:(.text+0x4ce): undefined reference to `SDL_FreeSurface'
/tmp/ccXQpwd2.o: In function `create_button_efecto(int, int)':
Untitled1.cpp:(.text+0x4fc): undefined reference to `IMG_Load'
Untitled1.cpp:(.text+0x522): undefined reference to `SDL_UpperBlit'
Untitled1.cpp:(.text+0x52f): undefined reference to `SDL_Flip'
Untitled1.cpp:(.text+0x53a): undefined reference to `SDL_FreeSurface'
/tmp/ccXQpwd2.o: In function `crear_pantalla(int, int, char const*, char const*)':
Untitled1.cpp:(.text+0x561): undefined reference to `SDL_Quit'
Untitled1.cpp:(.text+0x56b): undefined reference to `TTF_Init'
Untitled1.cpp:(.text+0x577): undefined reference to `SDL_Init'
Untitled1.cpp:(.text+0x582): undefined reference to `IMG_Load'
Untitled1.cpp:(.text+0x5a7): undefined reference to `SDL_SetVideoMode'
Untitled1.cpp:(.text+0x5bf): undefined reference to `SDL_WM_SetCaption'
Untitled1.cpp:(.text+0x5e2): undefined reference to `SDL_UpperBlit'
Untitled1.cpp:(.text+0x5ef): undefined reference to `SDL_Flip'
/tmp/ccXQpwd2.o: In function `cursor_atras(int, int)':
Untitled1.cpp:(.text+0x639): undefined reference to `SDL_MapRGB'
Untitled1.cpp:(.text+0x653): undefined reference to `SDL_FillRect'
Untitled1.cpp:(.text+0x695): undefined reference to `SDL_MapRGB'
Untitled1.cpp:(.text+0x6af): undefined reference to `SDL_FillRect'
Untitled1.cpp:(.text+0x6f4): undefined reference to `SDL_MapRGB'
Untitled1.cpp:(.text+0x70e): undefined reference to `SDL_FillRect'
Untitled1.cpp:(.text+0x71b): undefined reference to `SDL_Flip'
/tmp/ccXQpwd2.o: In function `cursor_negro(int, int)':
Untitled1.cpp:(.text+0x765): undefined reference to `SDL_MapRGB'
Untitled1.cpp:(.text+0x77f): undefined reference to `SDL_FillRect'
Untitled1.cpp:(.text+0x78c): undefined reference to `SDL_Flip'
/tmp/ccXQpwd2.o: In function `cursor_blanco(int, int)':
Untitled1.cpp:(.text+0x7d6): undefined reference to `SDL_MapRGB'
Untitled1.cpp:(.text+0x7f0): undefined reference to `SDL_FillRect'
Untitled1.cpp:(.text+0x7fd): undefined reference to `SDL_Flip'
/tmp/ccXQpwd2.o: In function `cursor(int, int)':
Untitled1.cpp:(.text+0x847): undefined reference to `SDL_MapRGB'
Untitled1.cpp:(.text+0x861): undefined reference to `SDL_FillRect'
Untitled1.cpp:(.text+0x86e): undefined reference to `SDL_Flip'
/tmp/ccXQpwd2.o: In function `accion_boton_nuevo_calculo()':
Untitled1.cpp:(.text+0xa7a): undefined reference to `SDL_Delay'
/tmp/ccXQpwd2.o: In function `accion_boton_sumar()':
Untitled1.cpp:(.text+0xb6e): undefined reference to `SDL_Delay'
/tmp/ccXQpwd2.o: In function `main':
Untitled1.cpp:(.text+0x1df6): undefined reference to `SDL_WaitEvent'
collect2: ld returned 1 exit status
Algo minimo, es solo una molestia, pero si se puede compilar en linux, o es obligado el uso en visual studio??



