Results 1 to 4 of 4

Thread: WinCE fresh projects problem : missing ';' before identifier 'wceMenu'

  1. #1
    Join Date
    Dec 2009
    Posts
    62
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Windows

    Default WinCE fresh projects problem : missing ';' before identifier 'wceMenu'

    Hi

    I am trying to get my first WinC project compiling but I still have some issues. Win32 is running fine.

    I have downloaded a fresh Windows CE package from the website.

    Then I do setcepaths.bat wincewm50pocket-msvc2005 and then nmake

    This seemed to work just fine, I got no error messages during compilation.

    Now I select the newly compiled qt version in the Visual Studio plugin and that is ok as well.

    I create a new QT WinCE exe project and when compiling I get this, all the errors refer to wceMenu. If I look in qMenu.h where the error is it looks like this:
    #ifdef Q_WS_WINCE
    HMENU wceMenu(bool create = false); //It seems like the HMENU is not recognized
    #endif

    1>main.cpp
    1>c:\qt\qt-everywhere-opensource-src-4.6.0\include\qtgui\../../src/gui/widgets/qmenu.h(145) : error C2146: syntax error : missing ';' before identifier 'wceMenu'
    1>c:\qt\qt-everywhere-opensource-src-4.6.0\include\qtgui\../../src/gui/widgets/qmenu.h(145) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\qt\qt-everywhere-opensource-src-4.6.0\include\qtgui\../../src/gui/widgets/qmenu.h(145) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

  2. #2
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: WinCE fresh projects problem : missing ';' before identifier 'wceMenu'

    Try #include'ing windows.h or perhaps even "typedef void * HMENU" if you don't want to drag another header file into the project.

  3. #3
    Join Date
    Dec 2009
    Posts
    62
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: WinCE fresh projects problem : missing ';' before identifier 'wceMenu'

    thanks for the reply but I am not sure I get it.

    It feels that if I have a clean install of QT and a project generated by the wizard. It should compile right? I have not idea what the consequences might be of including windows.h or typedef to void?

  4. #4
    Join Date
    Feb 2010
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows Symbian S60

    Default Re: WinCE fresh projects problem : missing ';' before identifier 'wceMenu'

    Hi,

    Did you got a solution for this? I am having the same exact problem :\

    Thanks in advance,
    Joel Oliveira

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.