Menú

Mostrar Mensajes

Esta sección te permite ver todos los mensajes escritos por este usuario. Ten en cuenta que sólo puedes ver los mensajes escritos en zonas a las que tienes acceso en este momento.

Mostrar Mensajes Menú

Mensajes - tomsb

#1
probe con -lpthread y nada
este el codigo , creo q aqui no hay problema , el problema es al momento de compilar  :-[


Código (cpp) [Seleccionar]
#include <allegro5/allegro.h>
#include <allegro5/allegro_native_dialog.h>



void allegro_start(char *title,int width, int height)
{
allegro_init();
set_color_depth(24);
set_gfx_mode(GFX_AUTODETECTED_WINDOWED,windth,height,0,0);
set_window_title(title);

install_keyboard();
install_mouse();
install_timer();

}

int main()
{
allegro_start("TEST ",400,300);
while(!keypressed());

   return 0;

}



Mod: Los códigos deben ir en etiquetas GeSHi
#2
hola a todos primero que nada gracias por sus aportes.
tengo una problema al compilar en el terminal de ubuntu
instale la libreria de ALLEGRO5
quiero probar si esta todo bien y coloco lo siguiente en el terminal:    c++ -Wall prueba.cpp `pkg-config --cflags --libs allegro-5.0 allegro_primitives-5.0`

y me sale :


In file included from /usr/include/allegro5/internal/alconfig.h:55:0,
                 from /usr/include/allegro5/base.h:50,
                 from /usr/include/allegro5/allegro.h:26,
                 from prueba.cpp:2:
/usr/include/allegro5/platform/alucfg.h:53:2: error: #error Unix Allegro now REQUIRES pthreads
#error Unix Allegro now REQUIRES pthreads
  ^
In file included from /usr/include/allegro5/base.h:50:0,
                 from /usr/include/allegro5/allegro.h:26,
                 from prueba.cpp:2:
/usr/include/allegro5/inline/fmaths.inl: In function 'int al_fixtoi(al_fixed)':
/usr/include/allegro5/inline/fmaths.inl:207:1: error: 'al_fixfloor' was not declared in this scope
AL_INLINE(int, al_fixtoi, (al_fixed x),


alguien me puede decir que esta mal si falta algo