Results 1 to 4 of 4

Thread: Could not execute qt application which I created

  1. #1
    Join Date
    Dec 2015
    Posts
    2
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default Could not execute qt application which I created

    Hi,
    I have created Qt application that calls some FORTRAN routines. During compilation, I don't get any error because I added FORTRAN object files in my project. During execution, I get the following error.
    undefined reference to `_gfortran_pow_c8_i4'
    undefined reference to `_gfortran_st_write_done'
    undefined reference to `_gfortran_st_write'
    undefined reference to `_gfortran_transfer_real_write'

    If I add a library called "fortran3.dll" then I am not getting this error, but I could not run my exe file getting application error "The application was unable to start (0x000007b)" .

    Could anyone give a solution to this? Why I could not execute the application if that library is added ?

  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: Could not execute qt application which I created

    It is hard to say what could be wrong. Your application is dependent on all sorts of things, including some Qt components. We have no idea of what you have depoyed, your Qt version, or compiler toolchan.

  3. #3
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,330
    Thanks
    317
    Thanked 871 Times in 858 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Could not execute qt application which I created

    The application was unable to start (0x000007b)
    Google tells me that this error is often related to a DLL mis-match: 32-bit DLLs being deployed with a 64-bit EXE or vice-versa. If your FORTRAN DLL is a 32-bit DLL, you must build your EXE the same way.

  4. #4
    Join Date
    Dec 2015
    Posts
    2
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default Re: Could not execute qt application which I created

    Thanks for the solution. Yes it is issue on dll mismatch.

Similar Threads

  1. Replies: 3
    Last Post: 5th November 2012, 07:18
  2. Replies: 1
    Last Post: 30th May 2011, 13:46
  3. Replies: 2
    Last Post: 24th March 2010, 10:31
  4. How to execute an exe file from Qt application
    By maveric in forum Qt Programming
    Replies: 1
    Last Post: 24th May 2008, 10:24
  5. Replies: 1
    Last Post: 15th February 2006, 22:17

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.