Osei Simba Hinds | 1 Dec 2008 10:44
Picon

Wt-2.2.1 WLayout Compile Error

Hi all,

I recently upgraded to Wt-2.2.1 and these two includes in my project related to layout seem to be causing a problem
#include <Wt/WGridLayout>
#include <Wt/WBorderLayout>


Here's what I get when I try to compile:-
/usr/local/include/Wt/WLayout:170: error: expected ';' before 'margins_'

In the file at that line ->   int    *WT_ARRAY margins_;


I am compiling all necessary libraries (/usr/local/lib/libwt.so /usr/local/lib/libwthttp.so /usr/local/lib/libwtext.so).  Has anyone ever seen this before or know how to correct?  I am compiling on Ubuntu.

Thanks in advance,

Osei

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
witty-interest mailing list
witty-interest@...
https://lists.sourceforge.net/lists/listinfo/witty-interest
Koen Deforche | 1 Dec 2008 10:54
Picon
Favicon

Re: Wt-2.2.1 WLayout Compile Error

Hey Osei,

2008/12/1 Osei Simba Hinds <trini@...>:
> Hi all,
>
> I recently upgraded to Wt-2.2.1 and these two includes in my project related
> to layout seem to be causing a problem
> #include <Wt/WGridLayout>
> #include <Wt/WBorderLayout>
>
>
> Here's what I get when I try to compile:-
> /usr/local/include/Wt/WLayout:170: error: expected ';' before 'margins_'
>
> In the file at that line ->   int    *WT_ARRAY margins_;

This is bizarre: WGridLayout includes Wt/WLayout,
  which includes Wt/WLayoutItem,

>
> I am compiling all necessary libraries (/usr/local/lib/libwt.so
> /usr/local/lib/libwthttp.so /usr/local/lib/libwtext.so).  Has anyone ever
> seen this before or know how to correct?  I am compiling on Ubuntu.
>
> Thanks in advance,
>
> Osei
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> witty-interest mailing list
> witty-interest@...
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
>

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Koen Deforche | 1 Dec 2008 10:56
Picon
Favicon

Re: Wt-2.2.1 WLayout Compile Error

All,

(I am really starting to hate GMail's keyboard behaviour!)

2008/12/1 Koen Deforche <koen@...>:

>> Here's what I get when I try to compile:-
>> /usr/local/include/Wt/WLayout:170: error: expected ';' before 'margins_'
>>
>> In the file at that line ->   int    *WT_ARRAY margins_;
>
> This is bizarre: WGridLayout includes Wt/WLayout,
>  which includes Wt/WLayoutItem,
    which includes Wt/WDllDefs.h,
    which defines WT_ARRAY as empty.

It sounds like you are suffering from a mix of include files (older
installed version of Wt)?

Regards,
koen

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Osei Simba Hinds | 1 Dec 2008 11:09
Picon

Re: Wt-2.2.1 WLayout Compile Error

This could be the case since I just updated to the newest version :(

On 12/1/08, Koen Deforche <koen@...> wrote:
> All,
>
> (I am really starting to hate GMail's keyboard behaviour!)
>
> 2008/12/1 Koen Deforche <koen@...>:
>
>>> Here's what I get when I try to compile:-
>>> /usr/local/include/Wt/WLayout:170: error: expected ';' before 'margins_'
>>>
>>> In the file at that line ->   int    *WT_ARRAY margins_;
>>
>> This is bizarre: WGridLayout includes Wt/WLayout,
>>  which includes Wt/WLayoutItem,
>     which includes Wt/WDllDefs.h,
>     which defines WT_ARRAY as empty.
>
> It sounds like you are suffering from a mix of include files (older
> installed version of Wt)?
>
> Regards,
> koen
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> witty-interest mailing list
> witty-interest@...
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>

--

-- 
Sent from Gmail for mobile | mobile.google.com

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Koen Deforche | 1 Dec 2008 12:34
Picon
Favicon

Wt 2.2.2

Hey all,

Wt 2.2.2 was released, and, if it weren't better than 2.2.1 we would
not have done that.

Not only have we fixed quite some little bugs in various places, but
there are also some new classes and features:

 - WTreeView (and WAbstractItemModel) now have support for drag and
drop: a selection of items can be dragged,
   and things (including but not limited to item selections) can be
dropped onto an item.
 - WSortFilterProxyModel implements a sorting/filtering proxy model
 - WLoadingIndicator allows the loading indicator to be customized
(and two variants are distributed in the library)
 - WPopupMenu and WPopupMenuItem implement typical context popup menu
(and sub menus)
 - The WidgetSet mode allows you to embed a Wt 'applet' inside an
existing web page or application

And Wt turns 3 years old today (still enjoying a fast growth rate!).

Regards,
koen

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
roja | 1 Dec 2008 13:44

internalPathChanged

Quick question...

    i am making use of internalPathChanged to identify when someone 
comes in from an unusual path however it appears to be called twice i.e.

http://0.0.0.0:8080/#/cheese/

[2008-Dec-01 12:38:07.623266] 8498 [/ d5dwPDyL5BzmMD1h] [path] "/cheese"
[2008-Dec-01 12:38:07.654451] 8498 [/ d5dwPDyL5BzmMD1h] [path] "/cheese/"

The log is generated from calling:

log("path") << internalPath();

within the function connected to internalPathChanged. Now ignoring this 
is trivial... i currently just do:

    if (!boost::iends_with(internalPath(), "/"))
        return;

which ignores all path changes that don't end in a slash, however this 
seems a little bit dirty plus without understanding the mechanism which 
causes it i can't be confident that the solution is a valid one...

Don't suppose you could detail why it happens and if it is a bug?

Cheers
roja

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Lalo Martins | 1 Dec 2008 14:20
Picon
Gravatar

Re: Wt 2.2.2

quoth Koen Deforche as of Mon, 01 Dec 2008 12:34:19 +0100:
> And Wt turns 3 years old today (still enjoying a fast growth rate!).

Happy birthday, Wt!

Oh, and thanks/congrats on the new release :-)

best,
                                               Lalo Martins
--

-- 
      So many of our dreams at first seem impossible,
       then they seem improbable, and then, when we
       summon the will, they soon become inevitable.
                           -----
                  http://lalomartins.info/
GNU: never give up freedom              http://www.gnu.org/

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Goetz Babin-Ebell | 1 Dec 2008 15:27
Favicon

Re: Wt 2.2.2

Am Montag, den 01.12.2008, 12:34 +0100 schrieb Koen Deforche:
> Hey all,
Hello Koen,

> Wt 2.2.2 was released, and, if it weren't better than 2.2.1 we would
> not have done that.
Really ? Are you sure ? ;-)

> Not only have we fixed quite some little bugs in various places, but
> there are also some new classes and features:
[...]

> And Wt turns 3 years old today (still enjoying a fast growth rate!).
Congrats...

Unfortunately I stumbled on a problem with the long longs:

g++ -c -I. -I run/wt-cvs/include -g -Wall -ansi -pedantic -Werror
formbase.C -o build/formbase.o
In file included from run/wt-cvs/include/Wt/WAbstractItemModel:
run/wt-cvs/include/Wt/WModelIndex:169: error: ISO C++ does not support
'long long'
run/wt-cvs/include/Wt/WModelIndex:274: error: ISO C++ does not support
'long long'

Please have a look at the attached patch...

Goetz

--

-- 
Goetz Babin-Ebell <goetz.babin-ebell@...>
4G Systems GmbH & Co KG
Attachment (uint64.patch): text/x-patch, 16 KiB
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
witty-interest mailing list
witty-interest@...
https://lists.sourceforge.net/lists/listinfo/witty-interest
Pau Garcia i Quiles | 1 Dec 2008 16:02
Favicon

Re: Wt 2.2.2

--
Pau Garcia i Quiles
http://www.elpauer.org
(Due to my workload, I may need 10 days to answer)

On Mon, Dec 1, 2008 at 3:27 PM, Goetz Babin-Ebell
<goetz.babin-ebell@...> wrote:
> Am Montag, den 01.12.2008, 12:34 +0100 schrieb Koen Deforche:
>> Hey all,
> Hello Koen,
>
>> Wt 2.2.2 was released, and, if it weren't better than 2.2.1 we would
>> not have done that.
> Really ? Are you sure ? ;-)
>
>> Not only have we fixed quite some little bugs in various places, but
>> there are also some new classes and features:
> [...]
>
>> And Wt turns 3 years old today (still enjoying a fast growth rate!).
> Congrats...
>
> Unfortunately I stumbled on a problem with the long longs:
>
> g++ -c -I. -I run/wt-cvs/include -g -Wall -ansi -pedantic -Werror
> formbase.C -o build/formbase.o
> In file included from run/wt-cvs/include/Wt/WAbstractItemModel:
> run/wt-cvs/include/Wt/WModelIndex:169: error: ISO C++ does not support
> 'long long'
> run/wt-cvs/include/Wt/WModelIndex:274: error: ISO C++ does not support
> 'long long'
>
> Please have a look at the attached patch...

Although accepted by some compilers, uint64_t is not C++ either.
Probably Sun CC won't accept it.

See:
http://groups.google.com.ag/group/comp.lang.c++/browse_thread/thread/b9f663d355ffc46b

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Koen Deforche | 1 Dec 2008 17:32
Picon
Favicon

Re: Wt 2.2.2

Hey Pau, Goetz,

2008/12/1 Pau Garcia i Quiles <pgquiles@...>:
>>> Wt 2.2.2 was released, and, if it weren't better than 2.2.1 we would
>>> not have done that.
>> Really ? Are you sure ? ;-)

We all live with the big fear of Recession^H^H, I mean, Regression :-)

>> Unfortunately I stumbled on a problem with the long longs:
>>
>> g++ -c -I. -I run/wt-cvs/include -g -Wall -ansi -pedantic -Werror
>> formbase.C -o build/formbase.o
>> In file included from run/wt-cvs/include/Wt/WAbstractItemModel:
>> run/wt-cvs/include/Wt/WModelIndex:169: error: ISO C++ does not support
>> 'long long'
>> run/wt-cvs/include/Wt/WModelIndex:274: error: ISO C++ does not support
>> 'long long'
>>
>> Please have a look at the attached patch...
>
> Although accepted by some compilers, uint64_t is not C++ either.
> Probably Sun CC won't accept it.

I wasn't actually aware of the long long non-standardness...
Since we also need to support Sun CC is also a supported platform.

Anyone knows a recommended cross-compiler solution to get a 64 bit
number? Perhaps the solution is to not compile with -ansi/-pedantic?
Apparently long long will also be part of the new C++ spec?

Regards,
koen

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

Gmane