Results 1 to 3 of 3

Thread: compiler and app error with qtcreator 2.3 and 4..7.4

  1. #1
    Join Date
    Mar 2009
    Posts
    8
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Unhappy compiler and app error with qtcreator 2.3 and 4..7.4

    I've recently update my QtCreator and Qt installation to 2.3 and 4.7.4 respectively. However, ever since I upgraded I can't compile or run my older programs (exit with code: 1073741511). When I compile I get the following error:

    Qt Code:
    1. In file included from d:\__dev\qt\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/bits/postypes.h:42,
    2. from d:\__dev\qt\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/bits/char_traits.h:42,
    3. from d:\__dev\qt\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/string:42,
    4. from d:\__dev\Qt\QtSDK\Desktop\Qt\4.7.4\mingw\include/QtCore/qstring.h:60,
    5. from d:\__dev\Qt\QtSDK\Desktop\Qt\4.7.4\mingw\include/QtCore/qobject.h:48,
    6. from d:\__dev\Qt\QtSDK\Desktop\Qt\4.7.4\mingw\include/QtCore/qcoreapplication.h:45,
    7. from d:\__dev\Qt\QtSDK\Desktop\Qt\4.7.4\mingw\include/QtGui/qapplication.h:45,
    8. from d:\__dev\Qt\QtSDK\Desktop\Qt\4.7.4\mingw\include/QtGui/QApplication:1,
    9. from ..\apache-gui\main.cpp:1:
    10. d:\__dev\qt\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/cwchar:159: error: '::swprintf' has not been declared
    11. d:\__dev\qt\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/cwchar:166: error: '::vswprintf' has not been declared
    12. mingw32-make[1]: Leaving directory `C:/Users/creatio/Desktop/work/C++/apache-gui/apache-gui-build-desktop'
    13. mingw32-make[1]: *** [debug/main.o] Error 1
    14. mingw32-make: *** [debug] Error 2
    15. The process "D:\__dev\Qt\QtSDK\mingw\bin\mingw32-make.exe" exited with code 2.
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    May 2011
    Posts
    239
    Thanks
    4
    Thanked 35 Times in 35 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Symbian S60

    Default Re: compiler and app error with qtcreator 2.3 and 4..7.4

    As far as I see, this page may have a solution to you:
    http://stackoverflow.com/questions/6...-been-declared

  3. #3
    Join Date
    Mar 2009
    Posts
    8
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: compiler and app error with qtcreator 2.3 and 4..7.4

    Thanks, it set me in the right direction. I ended up just building Qt from source instead of the SDK libraries. The problem I'm having right now is that the application has the QWindowsStyle. It doesn't automatically set it to QWindowsVistaStyle. I've tried setting it with QApplication::setStyle(new QWindowsVistaStyle), but it gives me the QWindowsVistaStyle in undefined error.

    Qt Code:
    1. #include <QtGui/QApplication>
    2. #include <QWindowsVistaStyle>
    3. #include "mainwindow.h"
    4.  
    5. int main(int argc, char *argv[])
    6. {
    7. QApplication::setStyle("windowsxp");
    8. QApplication a(argc, argv);
    9. MainWindow w;
    10. w.show();
    11.  
    12. return a.exec();
    13. }
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. Missing manifest for QtCore4d.dll
    By walmit in forum Installation and Deployment
    Replies: 1
    Last Post: 2nd June 2012, 03:16
  2. QtCreator compiler options
    By soxs060389 in forum Installation and Deployment
    Replies: 2
    Last Post: 2nd December 2011, 00:19
  3. Replies: 8
    Last Post: 16th February 2011, 05:16
  4. Replies: 1
    Last Post: 16th March 2010, 18:41
  5. Replies: 2
    Last Post: 28th April 2009, 08:37

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.