Sina KH
Sina KH

Reputation: 565

qt app crash on start after adding a library

I'm currently working on a QT application, targeting windows platform.

After compiling and installing ITPP (it++ library) on my system, I've tried to add it to this project, but after linking .lib and adding header files, when I try to include and use it, application crashes on start without any output!

What I get in application output:

AppName.exe exited with code -1073741515

In .pro file: (.lib and header folders are in root directory)

win32: LIBS += -L$$PWD/./ -litpp

INCLUDEPATH += $$PWD/.
DEPENDPATH += $$PWD/.

The code which causes the crash:

#include <itpp/itcomm.h>

using namespace itpp;
using namespace std;

... (sample from test files)

Upvotes: 1

Views: 785

Answers (1)

drescherjm
drescherjm

Reputation: 10837

Cause

The error code you get, -1073741515, is in hex 0xc0000135. According to the Microsoft documentation for status codes, there is a missing dll:

STATUS_DLL_NOT_FOUND {Unable To Locate Component} This application has failed to start because %hs was not found. Reinstalling the application might fix this problem.

Solution

Copy the dependent dlls to a folder of the PATH environment variable or to the location of your executable.

Upvotes: 2

Related Questions