Important: Please read the Qt Code of Conduct -

linker crash while accessing DLL functions in QT5 @Windows

  • when trying to access DLL functions in my QT application.
    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

    Any suggestion OR help to deal with this issue??

  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Can that DLL be found by the application ?

    If not, then go to the Run part of the Project panel and add the path to the folder containing it to the PATH environment variable.

Log in to reply