John,

What compiler are you using?  The example only works on VC 6.  I added
that limitation to the description.  I'll have a version ready for VC
7.1 soon.

I did fix the include file problem.  The file was on my box :)

The main code of interest is just the snippet in
boost_test_gui/dialog.cpp.  The implementation itself is going to get a
serious overhaul, but I wanted to see what everyone thought of the
direction I was heading with the interface.

Thanks a lot for checking this out!

Brock

> -----Original Message-----
> From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
> On Behalf Of John Torjo
> Sent: Monday, August 04, 2003 11:36 AM
> To: Boost mailing list
> Subject: Re: [boost] Re: Re: Re: Re: Re: Re: Re: Re: GUI/GDI template
> library
> 
> 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.cp
p(
> 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.cp
p(
> 29
> ) : error C2146: syntax error : missing ';' before identifier
> 'operate_on_sizes'
>
D:\john\programming\boost\boost_gui\boost_gui\desired_size_operations.cp
p(
> 29
> ) : error C2143: syntax error : missing ')' before 'const'
>
D:\john\programming\boost\boost_gui\boost_gui\desired_size_operations.cp
p(
> 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.cp
p(
> 29
> ) : see declaration of 'operate_on_sizes'
>
D:\john\programming\boost\boost_gui\boost_gui\desired_size_operations.cp
p(
> 29
> ) : error C2059: syntax error : ')'
>
D:\john\programming\boost\boost_gui\boost_gui\desired_size_operations.cp
p(
> 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.cp
p(
> 29
> ) : error C2146: syntax error : missing ';' before identifier
> 'operate_on_sizes'
>
D:\john\programming\boost\boost_gui\boost_gui\desired_size_operations.cp
p(
> 29
> ) : error C2143: syntax error : missing ')' before 'const'
>
D:\john\programming\boost\boost_gui\boost_gui\desired_size_operations.cp
p(
> 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.cp
p(
> 29
> ) : see declaration of 'operate_on_sizes'
>
D:\john\programming\boost\boost_gui\boost_gui\desired_size_operations.cp
p(
> 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
[...]

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to