Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7026137
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T00:04:37+00:00 2026-05-28T00:04:37+00:00

I am new to using QT so I suppose this has an easy answer

  • 0

I am new to using QT so I suppose this has an easy answer but it eludes me. I am porting an application into QT and I went about using the QTEditor to do that. My compiler is MinGw and QT version is 4.7.4 and the OS is Windows 7.

All happens fine in the compiling and linking. It is during running that I get the exit code 0xc0000135 which means a missing dependency. The dependency in question is a C library that I have made myself and is also compiled with mingw so there is no binary compatibility issue. In addition if I put the .dll in the same directory as the resulting executable the application runs fine.

Here is the relevant part of the .pro file:

win32:LIBS += C:\Projects_SourceCode\MyLib\Bin\Release\MyLib.dll
win32:INCLUDEPATH += C:\Projects_SourceCode\MyLib\

What am I missing? This compiles and links fine but later the executable fails to find the “MyLib.dll”. I would like to avoid putting it in the path. Isn’t there a way from within QTEditor to let the executable know where to search for the .dll?

I am used to using the Codeblocks IDE and from there it’s really easy to do such a thing so I assume QTEditor also allows for such an option. Any help would be appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T00:04:38+00:00Added an answer on May 28, 2026 at 12:04 am

    You could add it to PATH variable only for running environment (not in entire system) – you can manipulate run environment in projects screen. Obviously this will work only for debugging, not for production executable. For distributing your app consider putting dll in the same dir as main executable.

    Where to look for dll is (at least on windows) not written in executable – the system firstly looks in executable directory, and then looking through PATH directories, so you cannot do it any other way. Where to look for dll is a matter of execution, not compilation, so don’t expect qmake project file to help you with it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Suppose this C# code: using (MemoryStream stream = new MemoryStream()) { StreamWriter normalWriter =
I got into a dilemma about using has_many, :through. Suppose I am trying to
Apologies if this question has been asked already, but suppose we have this code
This is suppose to be a basic password change method using DirectoryServices in ASP.NET.
I am using Jboss5.1.x, EJB3.0 I am into this subject for couple of days
I'm new to hibernate, as you'll soon see. I apologize if this question has
I'm new to PHP and this question seems stupid. But I'm really confused with
I am using Squeryl as an ORM with MySQL. This is a new project
I still very new using Subversion. Is it possible to have a working copy
when using new Date,I get something like follows: Fri May 29 2009 22:39:02 GMT+0800

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.