Results 1 to 4 of 4

Thread: How can i know if my application compiled on Win 7 x32 SP1 would run on other Windows

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2011
    Posts
    86
    Thanks
    4
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default How can i know if my application compiled on Win 7 x32 SP1 would run on other Windows

    As in title. Want to create multi-windows version app, but compiled only once. But how can i know if it would run for instance on Win XP SP1 x32, or Win XP x64 SP2 if i don't have them? It probably depends on in what architecture my libraries (like QT) was compiled, my OS architecture, compiler but anything else?
    What should i do if i would like to have app working on Win 98 and compiled on Win 7?

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: How can i know if my application compiled on Win 7 x32 SP1 would run on other Win

    If you want a compile once run anywhere Windows application then:
    • You will have to build a 32-bit application. 64-bit applications will not run on 32-bit platforms but the 32-bit ones will run on 64-bit Windows.
    • Avoid using any Windows API code that is not available in Windows XP.
    • Avoid using any third party library that does not support Windows XP.


    If you really want to inflict Windows 98 on yourself then you should look here:
    http://stackoverflow.com/questions/2...for-windows-98
    It seems likely you will have to use a compiler that can target Win 98 and, of course, avoid any functionality that requires features of Windows 2000/XP or later.

  3. #3
    Join Date
    Sep 2011
    Posts
    86
    Thanks
    4
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default Re: How can i know if my application compiled on Win 7 x32 SP1 would run on other Win

    Ok, thanks.
    I have one more question. I can see on this page:http://developer.qt.nokia.com/doc/qt...platforms.html
    that there are three levels of Nokia support for Qt development. My question is, what do you think about creating commercial application on Windows with GCC/MinGW compiler. Is there a real risk of hidden errors? Do people make commercial soft with this combination?

  4. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: How can i know if my application compiled on Win 7 x32 SP1 would run on other Win

    My question is, what do you think about creating commercial application on Windows with GCC/MinGW compiler. Is there a real risk of hidden errors?
    There is always a risk that there will be errors in the compiler output. This is not unique to open source software. A bug in the compiler is only relevant if it affects the compilation or operation of your program. Failing to compile is failing safe (i.e. no adverse customer effect) and you hope your testing will detect operating errors. Compiler errors with adverse effects are generally quickly found and fixed because the tools are widely used.
    Do people make commercial soft with this combination?
    Yes, absolutely.

    If you really want to use a Tier 1 supported compiler then the compiler in the free (as in no dollars) Windows SDK should do the trick.

Similar Threads

  1. Replies: 2
    Last Post: 24th December 2011, 00:19
  2. Deploying first Windows app.... compiled... now what.
    By kiss-o-matic in forum Installation and Deployment
    Replies: 3
    Last Post: 14th October 2010, 15:05
  3. Replies: 2
    Last Post: 5th October 2010, 08:20
  4. Replies: 3
    Last Post: 20th September 2010, 22:36
  5. Replies: 0
    Last Post: 21st June 2010, 10:59

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
  •  
Qt is a trademark of The Qt Company.