PDA

View Full Version : 1073741515 problem



K4ELO
1st December 2013, 00:03
This is the strangest thing I have seen in Qt. Built a simple test application with one external library plus qwt.
Just one other source file plus the main window.

Compiles fine, runs fine, no errors. Then just change the title in the main window. Recompile (ok) and run and get the 1073741515 error. I have tried this in multiple little test projects and it happens every time.
Driving me nuts, any advice greatly appreciated.

Thanks
Wayne9827

ChrisW67
1st December 2013, 09:35
When quote error numbers and messages it is important to be precise. The error number is "-1073741515" not "1073741515". The value -1073741515 is 0xC0000135 in hex, which basically means "some dll not found".

In this case it is likely to be the Qwt or the other library not being in the run-time environment.

K4ELO
1st December 2013, 13:53
Thanks Chris. Does it matter where the libraries are, so long as the pro file specifies the location correctly?
Here is the pro file:


QT += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = Portaudio_Test
TEMPLATE = app


SOURCES += main.cpp\
mainwindow.cpp \
helloring.cpp

HEADERS += mainwindow.h \
helloring.h

FORMS += mainwindow.ui

INCLUDEPATH += C:/development/qt_projects/portaudio_test/portaudio/include
LIBS += -L"C:/development/QT_Projects/portaudio_test/portaudio/lib"
LIBS += -lportaudio_x86

INCLUDEPATH += C:/development/qt_projects/qwt/qwt-6.1-rc3/src
LIBS += -L"C:/development/qt_projects/qwt/qwt-6.1-rc3/lib"
LIBS += -lqwt

CONFIG += debug \
qwt

Lesiok
1st December 2013, 18:43
LIBS directive specifies location of lib files for linker. You have a problem with location of DLL files and this is a runtime problem.

ChrisW67
1st December 2013, 23:32
The DLLs need to be in the same directory as the executable, the current working directory, one of the windows directories, or located somewhere on the PATH

http://msdn.microsoft.com/en-us/library/vstudio/7d83bc18.aspx