Erro ao compliar FLTK

1. Erro ao compliar FLTK

José Antônio
zeaquinense

(usa Fedora)

Enviado em 09/08/2009 - 14:53h

Boa tarde,
estou tendo problemas para compilar o programa FLTK, estou coloando o log da compilacao para vocês verem.


[Ze@Presario900 fltk-1.1.9]$ make
=== making src ===
Compiling Fl.cxx...
Fl.cxx: In static member function ‘static int Fl::handle(int, Fl_Window*)’:
Fl.cxx:715: warning: suggest parentheses around ‘&&’ within ‘||’
Compiling Fl_Adjuster.cxx...
Compiling Fl_Bitmap.cxx...
Compiling Fl_Browser.cxx...
Compiling Fl_Browser_.cxx...
Compiling Fl_Browser_load.cxx...
Compiling Fl_Box.cxx...
Compiling Fl_Button.cxx...
Compiling Fl_Chart.cxx...
Compiling Fl_Check_Browser.cxx...
Compiling Fl_Check_Button.cxx...
Compiling Fl_Choice.cxx...
Compiling Fl_Clock.cxx...
Compiling Fl_Color_Chooser.cxx...
Compiling Fl_Counter.cxx...
Compiling Fl_Dial.cxx...
Compiling Fl_Double_Window.cxx...
Compiling Fl_File_Browser.cxx...
Compiling Fl_File_Chooser.cxx...
Compiling Fl_File_Chooser2.cxx...
Compiling Fl_File_Icon.cxx...
Compiling Fl_File_Input.cxx...
Compiling Fl_Group.cxx...
Fl_Group.cxx: In member function ‘virtual void Fl_Group::resize(int, int, int, int)’:
Fl_Group.cxx:466: warning: suggest parentheses around ‘&&’ within ‘||’
Compiling Fl_Help_View.cxx...
Compiling Fl_Image.cxx...
Compiling Fl_Input.cxx...
Fl_Input.cxx: In member function ‘int Fl_Input::handle_key()’:
Fl_Input.cxx:124: warning: suggest parentheses around ‘&&’ within ‘||’
Fl_Input.cxx:127: warning: suggest parentheses around ‘&&’ within ‘||’
Fl_Input.cxx:128: warning: suggest parentheses around ‘&&’ within ‘||’
Fl_Input.cxx: In member function ‘virtual int Fl_Input::handle(int)’:
Fl_Input.cxx:369: warning: suggest parentheses around ‘&&’ within ‘||’
Compiling Fl_Input_.cxx...
Fl_Input_.cxx: In member function ‘int Fl_Input_::undo()’:
Fl_Input_.cxx:641: warning: suggest parentheses around ‘&&’ within ‘||’
Compiling Fl_Light_Button.cxx...
Compiling Fl_Menu.cxx...
Fl_Menu.cxx: In member function ‘virtual int menuwindow::handle(int)’:
Fl_Menu.cxx:647: warning: suggest parentheses around ‘&&’ within ‘||’
Fl_Menu.cxx:730: warning: suggest parentheses around ‘&&’ within ‘||’
Compiling Fl_Menu_.cxx...
Compiling Fl_Menu_Bar.cxx...
Compiling Fl_Sys_Menu_Bar.cxx...
Compiling Fl_Menu_Button.cxx...
Compiling Fl_Menu_Window.cxx...
Compiling Fl_Menu_add.cxx...
Compiling Fl_Menu_global.cxx...
Compiling Fl_Multi_Label.cxx...
Compiling Fl_Overlay_Window.cxx...
Compiling Fl_Pack.cxx...
Compiling Fl_Pixmap.cxx...
Compiling Fl_Positioner.cxx...
Compiling Fl_Preferences.cxx...
Fl_Preferences.cxx: In function ‘char* decodeText(const char*)’:
Fl_Preferences.cxx:309: warning: suggest explicit braces to avoid ambiguous ‘else’
Compiling Fl_Progress.cxx...
Compiling Fl_Repeat_Button.cxx...
Compiling Fl_Return_Button.cxx...
Compiling Fl_Roller.cxx...
Compiling Fl_Round_Button.cxx...
Compiling Fl_Scroll.cxx...
Compiling Fl_Scrollbar.cxx...
Compiling Fl_Shared_Image.cxx...
Compiling Fl_Single_Window.cxx...
Compiling Fl_Slider.cxx...
Compiling Fl_Tabs.cxx...
Fl_Tabs.cxx: In member function ‘int Fl_Tabs::push(Fl_Widget*)’:
Fl_Tabs.cxx:245: warning: suggest parentheses around ‘&&’ within ‘||’
Compiling Fl_Text_Buffer.cxx...
Fl_Text_Buffer.cxx: In member function ‘int Fl_Text_Buffer::undo(int*)’:
Fl_Text_Buffer.cxx:351: warning: suggest parentheses around ‘&&’ within ‘||’
Fl_Text_Buffer.cxx: In function ‘char chooseNullSubsChar(char*)’:
Fl_Text_Buffer.cxx:1338: warning: array subscript has type ‘char’
Compiling Fl_Text_Display.cxx...
Compiling Fl_Text_Editor.cxx...
Compiling Fl_Tile.cxx...
Fl_Tile.cxx: In member function ‘void Fl_Tile::position(int, int, int, int)’:
Fl_Tile.cxx:51: warning: suggest parentheses around ‘&&’ within ‘||’
Fl_Tile.cxx:51: warning: suggest parentheses around ‘&&’ within ‘||’
Fl_Tile.cxx:53: warning: suggest parentheses around ‘&&’ within ‘||’
Fl_Tile.cxx:53: warning: suggest parentheses around ‘&&’ within ‘||’
Fl_Tile.cxx:59: warning: suggest parentheses around ‘&&’ within ‘||’
Fl_Tile.cxx:59: warning: suggest parentheses around ‘&&’ within ‘||’
Fl_Tile.cxx:61: warning: suggest parentheses around ‘&&’ within ‘||’
Fl_Tile.cxx:61: warning: suggest parentheses around ‘&&’ within ‘||’
Compiling Fl_Tiled_Image.cxx...
Compiling Fl_Tooltip.cxx...
Compiling Fl_Valuator.cxx...
Compiling Fl_Value_Input.cxx...
Compiling Fl_Value_Output.cxx...
Compiling Fl_Value_Slider.cxx...
Compiling Fl_Widget.cxx...
Compiling Fl_Window.cxx...
Compiling Fl_Window_fullscreen.cxx...
Compiling Fl_Window_hotspot.cxx...
Compiling Fl_Window_iconize.cxx...
Compiling Fl_Wizard.cxx...
Compiling Fl_XBM_Image.cxx...
Compiling Fl_XPM_Image.cxx...
Compiling Fl_abort.cxx...
Compiling Fl_add_idle.cxx...
Compiling Fl_arg.cxx...
Compiling Fl_compose.cxx...
Fl_compose.cxx: In static member function ‘static int Fl::compose(int&)’:
Fl_compose.cxx:164: warning: suggest parentheses around ‘&&’ within ‘||’
Compiling Fl_display.cxx...
Compiling Fl_get_key.cxx...
Compiling Fl_get_system_colors.cxx...
Compiling Fl_grab.cxx...
Compiling Fl_lock.cxx...
Compiling Fl_own_colormap.cxx...
Compiling Fl_visual.cxx...
Compiling Fl_x.cxx...
Fl_x.cxx: In function ‘int can_boxcheat(uchar)’:
Fl_x.cxx:1372: warning: suggest parentheses around ‘&&’ within ‘||’
Compiling filename_absolute.cxx...
Compiling filename_expand.cxx...
Compiling filename_ext.cxx...
Compiling filename_isdir.cxx...
Compiling filename_list.cxx...
filename_list.cxx: In function ‘int fl_filename_list(const char*, dirent***, int (*)(dirent**, dirent**))’:
filename_list.cxx:70: error: invalid conversion from ‘int (*)(const void*, const void*)’ to ‘int (*)(const dirent**, const dirent**)’
filename_list.cxx:70: error: initializing argument 4 of ‘int scandir(const char*, dirent***, int (*)(const dirent*), int (*)(const dirent**, const dirent**))’
make[1]: ** [filename_list.o] Erro 1
make: ** [all] Erro 1

Alguem sabe qual problema esta ocorrendo?
muito Obrigado



  


2. Re: Erro ao compliar FLTK

Joao
stack_of

(usa Slackware)

Enviado em 09/08/2009 - 19:44h

Acredito ser pouco provável um erro de sintaxe em um fonte de um programa em fase estável.
Da uma olhada no README ou INSTALL do pacote, alguma opção de compilação, uma "flag" deve ser necessária.






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts