On 15 May 2008, at 18:34, Greg wrote:

> Hi, im trying to integrate fltk into a program im porting to linux  
> (yes, windows user im afraid)
>
> However, after installing all neccessary fltk packages i get these  
> errors:
>
> Here is a log from "make"
>
> [sudo] password for graham:
> g++ -Wall -g -Iinc -Iinc/core -D__LINUXBUILD__ `fltk-config -- 
> cflags` -Iinc/gui -DGUI   -c -o src/gui/gui_conn.o src/gui/ 
> gui_conn.cpp
> src/gui/gui_conn.cpp:5:25: error: Fl/Fl_Group.h: No such file or  
> directory
> src/gui/gui_conn.cpp:6:26: error: Fl/Fl_Choice.h: No such file or  
> directory
> src/gui/gui_conn.cpp:7:23: error: Fl/fl_ask.h: No such file or  
> directory

Unix is case sensitive, so you probably meant <FL/Fl_Group.H>  (etc.)  
- note that there are two (2) case changes in that line from what you  
have shown...

> In file included from inc/core/core.h:8,
>                  from src/gui/gui_conn.cpp:3:
> inc/core/array.h: In instantiation of ‘Array<Comport>’:
> inc/core/comports.h:15:   instantiated from here
> inc/core/array.h:54: warning: deprecated covariant return type for  
> ‘T* Array<T>::get(int) [with T = Comport]’
> inc/core/array.h:28: warning:   overriding ‘virtual void*  
> PArray::get(int)’
> inc/core/array.h:55: warning: deprecated covariant return type for  
> ‘const T* Array<T>::get(int) const [with T = Comport]’
> inc/core/array.h:29: warning:   overriding ‘virtual const void*  
> PArray::get(int) const’
> src/gui/gui_conn.cpp:9: error: expected initializer before ‘*’ token
> src/gui/gui_conn.cpp:10: error: expected initializer before ‘*’ token
> src/gui/gui_conn.cpp:11: error: expected initializer before ‘*’ token
> src/gui/gui_conn.cpp:12: error: expected initializer before ‘*’ token
> src/gui/gui_conn.cpp:14: error: variable or field  
> ‘cb_driver_selected’ declared void

These look like problems in your code, I guess - or maybe with the  
STL? Or perhaps things that are messed up because your headers are  
wrong? I guess we'd need to see more context, if fixing your includes  
doesn't sort it.

> src/gui/gui_conn.cpp:14: error: ‘Fl_Widget’ was not declared in  
> this scope
> src/gui/gui_conn.cpp:14: error: ‘w’ was not declared in this scope
> src/gui/gui_conn.cpp:14: error: expected primary-expression before  
> ‘void’

Probably a consequence of not including the headers correctly above,  
I guess...






_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to