#15 LPTVSORTCB not defined at compile time

open
nobody
None
5
2003-07-02
2003-07-02
No

When I start compiling either winui or vmingw i get the
following error:
g++ -I../include -DPREFER_PORTABLE_SNPRINTF -W -
Wall -mno-cygwin -fno-exceptions
-fno-rtti -Os -c browsdlg.cpp -o ../obj/browsdlg.o
In file included from ../include/browsdlg.h:20,
from browsdlg.cpp:14:
../include/wcomctrl.h:115: `LPTVSORTCB' was not
declared in this scope
../include/wcomctrl.h:115: parse error before `)' token
../include/wcomctrl.h: In member function `bool
CTreeView::SortChildrenCB(...)':
../include/wcomctrl.h:116: `psort' undeclared (first use
this function)
../include/wcomctrl.h:116: (Each undeclared identifier is
reported only once
for each function it appears in.)
e:\MinGW\bin\make.exe: *** [../obj/browsdlg.o] Error 1

It states LPTVSORTCB is not defined. Am I missing any
include o library?

Thanks

Discussion

  • manu b
    manu b
    2003-07-02

    Logged In: YES
    user_id=295543

    Francisco Sanchez wrote:

    >Summary: LPTVSORTCB not defined at compile time
    >
    >Initial Comment:
    >When I start compiling either winui or vmingw i get the
    >following error:
    >g++ -I../include -DPREFER_PORTABLE_SNPRINTF -W -
    >Wall -mno-cygwin -fno-exceptions
    > -fno-rtti -Os -c browsdlg.cpp -o ../obj/browsdlg.o
    >In file included from ../include/browsdlg.h:20,
    > from browsdlg.cpp:14:
    >../include/wcomctrl.h:115: `LPTVSORTCB' was not
    >declared in this scope
    >../include/wcomctrl.h:115: parse error before `)' token
    >../include/wcomctrl.h: In member function `bool
    > CTreeView::SortChildrenCB(...)':
    >../include/wcomctrl.h:116: `psort' undeclared (first use
    >this function)
    >../include/wcomctrl.h:116: (Each undeclared identifier is
    >reported only once
    > for each function it appears in.)
    >e:\MinGW\bin\make.exe: *** [../obj/browsdlg.o] Error 1
    >
    >It states LPTVSORTCB is not defined.

    That's correct, MinGW headers define the old structure.
    (TV_SORTCB I think)
    I've submitted a patch for that issue:
    http://sourceforge.net/tracker/index.php?
    func=detail&aid=739324&group_id=2435&atid=302435

    > Am I missing any
    >include o library?

    Meanwhile a new w32api is out, you need to patch your
    MinGW headers,
    with MSYS' patch tool for example, or manually.
    The diff file is in CVS, in patches:
    http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/visual-
    mingw/visual-mingw/patches/w32api/

    Please, see the attached patches.zip.

    Manu.

     
  • manu b
    manu b
    2003-07-02

    MinGW patches

     
    Attachments