The latest cvs code (08/06/2003 20:45:00 pst) will not compile - I get the following error:
gcc -c -I. -I. -I../../include -I../../include -D_REENTRANT -fPIC -D__WINESRC__ -Wall -mpreferred-stack-boundary=2 -fno-strict-aliasing -gstabs+ -Wpointer-arith -g -O2 -o propset.o propset.c propset.c: In function `DSPROPERTY_EnumerateW': propset.c:522: parse error before `*' propset.c:526: `wDescription' undeclared (first use in this function) propset.c:526: (Each undeclared identifier is reported only once propset.c:526: for each function it appears in.) propset.c:527: `wModule' undeclared (first use in this function) propset.c:528: `wInterface' undeclared (first use in this function) propset.c:550: parse error before `*'
This is on Linux kernel 2.4.20 (i586), GCC 2.95.4 with the configure line: ./configure --prefix=/usr --sysconfdir=/etc --with-opengl --with-x
This used to work, and the error amazes me because the exact same code appears in the source file several times before the error.
Any ideas? Thanks.
Peter Birch wrote:
The latest cvs code (08/06/2003 20:45:00 pst) will not compile - I get the following error:
gcc -c -I. -I. -I../../include -I../../include -D_REENTRANT -fPIC -D__WINESRC__ -Wall -mpreferred-stack-boundary=2 -fno-strict-aliasing -gstabs+ -Wpointer-arith -g -O2 -o propset.o propset.c propset.c: In function `DSPROPERTY_EnumerateW': propset.c:522: parse error before `*' propset.c:526: `wDescription' undeclared (first use in this function) propset.c:526: (Each undeclared identifier is reported only once propset.c:526: for each function it appears in.) propset.c:527: `wModule' undeclared (first use in this function) propset.c:528: `wInterface' undeclared (first use in this function) propset.c:550: parse error before `*'
This is on Linux kernel 2.4.20 (i586), GCC 2.95.4 with the configure line: ./configure --prefix=/usr --sysconfdir=/etc --with-opengl --with-x
This used to work, and the error amazes me because the exact same code appears in the source file several times before the error.
This patch will fix it. http://www.winehq.com/hypermail/wine-patches/2003/08/0050.html
Ah, thank you and also thanks for the explanation. I work in C++ so much that I forgot that you can't create variables just anyware with older C compilers.
Duane Clark wrote:
Peter Birch wrote:
The latest cvs code (08/06/2003 20:45:00 pst) will not compile - I get the following error:
gcc -c -I. -I. -I../../include -I../../include -D_REENTRANT -fPIC -D__WINESRC__ -Wall -mpreferred-stack-boundary=2 -fno-strict-aliasing -gstabs+ -Wpointer-arith -g -O2 -o propset.o propset.c propset.c: In function `DSPROPERTY_EnumerateW': propset.c:522: parse error before `*' propset.c:526: `wDescription' undeclared (first use in this function) propset.c:526: (Each undeclared identifier is reported only once propset.c:526: for each function it appears in.) propset.c:527: `wModule' undeclared (first use in this function) propset.c:528: `wInterface' undeclared (first use in this function) propset.c:550: parse error before `*'
This is on Linux kernel 2.4.20 (i586), GCC 2.95.4 with the configure line: ./configure --prefix=/usr --sysconfdir=/etc --with-opengl --with-x
This used to work, and the error amazes me because the exact same code appears in the source file several times before the error.
This patch will fix it. http://www.winehq.com/hypermail/wine-patches/2003/08/0050.html
I had to make the following change to get treeview.c to compile from the latest cvs (08/07/2003 14:10) Debian Linux 2.4.20/gcc 2.95.4
--- programs/regedit/treeview.c 7 Aug 2003 03:10:13 -0000 1.1 +++ programs/regedit/treeview.c 7 Aug 2003 21:08:26 -0000 @@ -90,7 +90,7 @@ static HTREEITEM AddEntryToTree(HWND hwn tvi.iSelectedImage = Image_Open; tvi.cChildren = dwChildren; tvi.lParam = (LPARAM)hKey; - tvins.item = tvi; + tvins.u.item = tvi; if (hKey) tvins.hInsertAfter = (HTREEITEM)TVI_LAST; else tvins.hInsertAfter = (HTREEITEM)TVI_SORT; tvins.hParent = hParent; @@ -115,7 +115,7 @@ static BOOL InitTreeViewItems(HWND hwndT tvi.cChildren = 5; /* Save the heading level in the item's application-defined data area. */ tvi.lParam = (LPARAM)NULL; - tvins.item = tvi; + tvins.u.item = tvi; tvins.hInsertAfter = (HTREEITEM)TVI_FIRST; tvins.hParent = TVI_ROOT; /* Add the item to the tree view control. */