Boost logo

Boost :

From: John Torjo (john.lists_at_[hidden])
Date: 2003-08-04 12:36:24


Hi,

I tried compiling the boost_gui code, but got compile-time errors.

Do I need a Service pack?

Example:
desired_size_operations.cpp
d:\john\programming\boost\boost_gui\boost_gui\floatroutines.h(8) : error
C2065: 'pow' : undeclared identifier
d:\john\programming\boost\boost_gui\boost_gui\floatroutines.inl(10) : error
C2065: 'floor' : undeclared identifier
d:\john\programming\boost\boost_gui\boost_gui\floatroutines.inl(16) : error
C2065: 'fabs' : undeclared identifier
D:\john\programming\boost\boost_gui\boost_gui\desired_size_operations.cpp(29
) : error C2893: Failed to specialize function template 'struct
layout::desired_size __cdecl `anonymous-namespace'::operate_on_sizes(const
struct layout::desired_size &,cons
t struct layout::desired_size &,const Fun &)'
        With the following template arguments:
        'struct `anonymous-namespace'::max_'
D:\john\programming\boost\boost_gui\boost_gui\desired_size_operations.cpp(29
) : error C2146: syntax error : missing ';' before identifier
'operate_on_sizes'
D:\john\programming\boost\boost_gui\boost_gui\desired_size_operations.cpp(29
) : error C2143: syntax error : missing ')' before 'const'
D:\john\programming\boost\boost_gui\boost_gui\desired_size_operations.cpp(29
) : error C2780: 'struct layout::desired_size __cdecl
`anonymous-namespace'::operate_on_sizes(const struct layout::desired_size
&,const struct layout::desired_size &,const F
un &)' : expects 3 arguments - 0 provided

D:\john\programming\boost\boost_gui\boost_gui\desired_size_operations.cpp(29
) : see declaration of 'operate_on_sizes'
D:\john\programming\boost\boost_gui\boost_gui\desired_size_operations.cpp(29
) : error C2059: syntax error : ')'
D:\john\programming\boost\boost_gui\boost_gui\desired_size_operations.cpp(29
) : error C2893: Failed to specialize function template 'struct
layout::desired_size __cdecl `anonymous-namespace'::operate_on_sizes(const
struct layout::desired_size &,cons
t struct layout::desired_size &,const Fun &)'
        With the following template arguments:
        'struct bplib::pluses'
D:\john\programming\boost\boost_gui\boost_gui\desired_size_operations.cpp(29
) : error C2146: syntax error : missing ';' before identifier
'operate_on_sizes'
D:\john\programming\boost\boost_gui\boost_gui\desired_size_operations.cpp(29
) : error C2143: syntax error : missing ')' before 'const'
D:\john\programming\boost\boost_gui\boost_gui\desired_size_operations.cpp(29
) : error C2780: 'struct layout::desired_size __cdecl
`anonymous-namespace'::operate_on_sizes(const struct layout::desired_size
&,const struct layout::desired_size &,const F
un &)' : expects 3 arguments - 0 provided

D:\john\programming\boost\boost_gui\boost_gui\desired_size_operations.cpp(29
) : see declaration of 'operate_on_sizes'
D:\john\programming\boost\boost_gui\boost_gui\desired_size_operations.cpp(29
) : error C2059: syntax error : ')'
Error executing cl.exe.

desired_size_operations.obj - 13 error(s), 0 warning(s)

Just one thing:
Drawing.cpp:

you have #include "/source/c++/bplib/WindowsUtils.h"

which is not present.

Best,
John

>
> ----- Original Message -----
> From: "Philippe A. Bouchard" <philippe_at_[hidden]>
> To: <boost_at_[hidden]>
> Sent: Sunday, August 03, 2003 9:33 PM
> Subject: [boost] Re: Re: Re: Re: Re: Re: Re: Re: GUI/GDI template library
>
>
> > brock wrote:
> >
> > [...]
> >
> > > What do you mean by "official macros"? The only macros in my code
> > > are in
> > > the implementation, you shouldn't see any in user code.
> >
> > Sorry I guess I have misinterpreted BEGIN_MESSAGE_MAP() in
> > boost_gui_test.cpp.
>
> Oh, that is auto generated MSVC 6 stuff.
>
> [...]
>
> > > If you're talking about message notifications, I use something like:
> > >
> > > struct window {
> > >
> > > void set_on_change(boost::funtion0<void>);
> > >
> > > void set_on_character_typed(boost::function1<void,char>);
> > > };
> >
> > Is it possible to associate widget instances with functions?
>
> Like with boost::bind?
>
> button b;
> edit e;
>
> button.set_on_pushed(boost::bind(&edit::disable_window, &e));
>
> (This is not how my library class names looks now, but how they will when
> rewritten)
>
>
> Brock
>
> _______________________________________________
> Unsubscribe & other changes:
http://lists.boost.org/mailman/listinfo.cgi/boost
>


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk