Results 1 to 3 of 3

Thread: QtSingleApplication in Windows with release mode

  1. #1
    Join Date
    Jul 2008
    Location
    Spain
    Posts
    23
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QtSingleApplication in Windows with release mode

    I use QtSingleApplication in my application.
    It works good on Linux.
    In Windows it works in debug mode, but in release mode compilation I get errors about QVector:

    g++ -c -O2 -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DNDEBUG -DQT_NO_DEBUG_OUTPUT -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..\Qt\2009.03\qt\include\QtCore" -I"..\..\Qt\2009.03\qt\include\QtNetwork" -I"..\..\Qt\2009.03\qt\include\QtGui" -I"..\..\Qt\2009.03\qt\include" -I"." -I"qtsingleapplication" -I"..\..\Qt\2009.03\qt\include\ActiveQt" -I"release" -I"." -I"..\..\Qt\2009.03\qt\mkspecs\win32-g++" -o release\qtlocalpeer.o qtsingleapplication\qtlocalpeer.cpp
    In file included from C:/Qt/2009.03/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/vector:71,
    from ../../Qt/2009.03/qt/include/QtCore/../../src/corelib/tools/qvector.h:52,
    from ../../Qt/2009.03/qt/include/QtCore/qvector.h:1,
    from ../../Qt/2009.03/qt/include/QtCore/QVector:1,
    from qtsingleapplication\qtlockedfile.h:52,
    from qtsingleapplication\qtlocalpeer.h:53,
    from qtsingleapplication\qtlocalpeer.cpp:48:
    C:/Qt/2009.03/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_vector.h:140: error: `allocator' has not been declared
    C:/Qt/2009.03/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_vector.h:140: error: expected `>' before '<' token
    C:/Qt/2009.03/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_vector.h:140: error: expected unqualified-id before '>' token
    C:/Qt/2009.03/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_vector.h:876: error: expected `,' or `...' before '<' token
    C:/Qt/2009.03/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_vector.h:877: error: `bool QtLP_Private::std:perator==(int)' must have an argument of class or enumerated type
    C:/Qt/2009.03/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_vector.h:877: error: `bool QtLP_Private::std:perator==(int)' must take exactly two arguments
    C:/Qt/2009.03/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_vector.h: In function `bool QtLP_Private::std:perator==(int)':
    C:/Qt/2009.03/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_vector.h:878: error: `__x' was not declared in this scope
    C:/Qt/2009.03/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_vector.h:878: error: `__y' was not declared in this scope
    C:/Qt/2009.03/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_vector.h:879: error: `equal' is not a member of `QtLP_Private::std'

    ...
    Thanks
    Auryn
    Starting to learn the world of Qt

  2. #2
    Join Date
    Sep 2009
    Location
    Nanjing, China
    Posts
    46
    Thanks
    12
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QtSingleApplication in Windows with release mode

    Same problem with QVector on Windows releaase mode. Could anybody tell me why? Thanks!

  3. #3
    Join Date
    May 2007
    Posts
    131
    Thanks
    17
    Thanked 4 Times in 2 Posts

    Default Re: QtSingleApplication in Windows with release mode

    Yes there's an issue whose origin is still unknown, and happens on Mac too.
    There's an issue on Qt Issue tracker about this problem, and starting from yesterday anyone can register and vote for an issue to push nokia to fix it, and write comments too.
    If you'd like to see it solved you should sign up and vote for it.

    Bye

Similar Threads

  1. Replies: 9
    Last Post: 15th April 2009, 06:23
  2. Not able to execute in Release Mode
    By sudheer168 in forum Qt Programming
    Replies: 4
    Last Post: 18th March 2009, 11:58
  3. Widget become black in Release mode
    By navi1084 in forum Qt Programming
    Replies: 5
    Last Post: 21st October 2008, 08:07
  4. qodbc driver not loaded error in release mode
    By mandal in forum Qt Programming
    Replies: 1
    Last Post: 14th November 2006, 09:42
  5. Release mode issue
    By stevey in forum Qt Programming
    Replies: 2
    Last Post: 8th November 2006, 20:26

Tags for this Thread

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.