PDA

View Full Version : ExamplePlugin.exe exited with code -1073741515



falconprakash
9th May 2012, 08:33
Hi,

I was trying to build a QGIS c++ plugin using Qt and MSVC2008 release on Windows XP. The program starts and then exits without any output- dll file or app.
The problem seems to be due to missing dll files. Can anyone help me with this problem. Here is the .pro file of my Project.

TEMPLATE = app
QT = qt3support gui core xml
HEADERS = mainwindow.h

SOURCES = main.cpp \
mainwindow.cpp


DEFINES += GUI_EXPORT= CORE_EXPORT=

##LIBS += -L"C:\QtSDK\Examples\4.7\tools\plugandpaint\plugins" -lpnp_basictools
LIBS += -L"F:/Workspace/QGIS/lib" \
-L"C:/Program Files/Quantum GIS Wroclaw/lib" -lqgis_core -lqgis_gui

INCLUDEPATH += "F:/Workspace/QGIS/include"\
"C:/Program Files/Quantum GIS Wroclaw/include"

ChrisW67
9th May 2012, 11:58
If the project compiles and links then the problem is not in the PRO file. Run it in your debugger and, when it crashes, the backtrace will tell you which bit of your code triggered the crash.

The QGIS libraries must be locatable to the running program: either on the system PATH or in the same directory as the exe or DLL that loads them.