Click here to Skip to main content
15,880,854 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more: , +
when trying to access DLL functions in my C++/QT application.
e.g
XML
result = CAN_Initialize(PCAN_USBBUS1, PCAN_BAUD_250K);

it is giving me error
The program has unexpectedly finished.
C:\myDevelopment\build-PcanPortLinker-Desktop_Qt_5_5_0_MinGW_32bit-Debug\debug\PcanPortLinker.exe crashed

following warnings in compile output

Warning: resolving _CAN_Initialize@20 by linking to _CAN_Initialize
Use --enable-stdcall-fixup to disable these warnings
Use --disable-stdcall-fixup to disable these fixups
Warning: resolving _CAN_GetErrorText@12 by linking to _CAN_GetErrorText
Posted
Comments
Richard MacCutchan 2-Nov-15 10:54am    
I would suggest you try your question at the QT website as they seem specific to that library.

1 solution

Please do not repost the same question more than once. I already answered this at linker crash in C++/QTwhile access DLL file[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900