链接器在C ++ / QT中崩溃,同时访问DLL文件 [英] linker crash in C++/QTwhile access DLL file

查看:75
本文介绍了链接器在C ++ / QT中崩溃,同时访问DLL文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在尝试从DLL文件访问我的API函数。但是收到这个错误

程序意外地完成了。

C:\ MyDevelopment\build-PcanPortLinker-Desktop_Qt_5_5_0_MinGW_32bit-Debug\debug \PcanPortLinker.exe坠毁



我的DLL文件配置如下。



LIBS + =C:/ MyDevelopment / PcanLinker / build-PcanPortLinker-Desktop_Qt_5_5_0_MinGW_32bit-Debug / debug / PCANBasic.dll



任何帮助/建议/经验分享将不胜感激。

谢谢

Hi,
I am trying to access my API functions from DLL file. but getting this error
"The program has unexpectedly finished."
C:\MyDevelopment\build-PcanPortLinker-Desktop_Qt_5_5_0_MinGW_32bit-Debug\debug\PcanPortLinker.exe crashed

My DLL file config is as following.

LIBS += "C:/MyDevelopment/PcanLinker/build-PcanPortLinker-Desktop_Qt_5_5_0_MinGW_32bit-Debug/debug/PCANBasic.dll"

Any help/suggestion/experience sharing would be appreciated.
Thanks

推荐答案

要真正了解正在发生的事情,您需要在调试器下运行程序,并在发生异常时陷阱它,并在这里发布调试器信息。



即异常类型,堆栈跟踪,发生错误的源代码等。



然后,我们或许可以找出你的问题



gwk
To really see what's going on, you need to run your program under the debugger, and when the exception occurs, trap it, and post the debugger info here.

i.e. Exception type, stack trace, source code on which the error occurs, etc.

then, we might be able to pinpoint your problem

gwk


这篇关于链接器在C ++ / QT中崩溃,同时访问DLL文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆