I have placed 32 bit DLL's in SysWOW64 and 64 bit DLLs in system32 folder.
When I build the code with calling APIs I get below errors
Code: Select all
gcc "-ID:\\CAN_DLL\\PCAN-UDS\\Include" -O0 -g3 -Wall -c -fmessage-length=0 -o "main\\UDSDllImport.o" "..\\main\\UDSDllImport.c"
gcc "-LC:\\Windows\\SysWOW64" -Xlinker --enable-stdcall-fixup -o UDSDllImport.exe "main\\UDSDllImport.o" -lPCAN-UDS -lPCAN-ISO-TP -lPCANBasic
c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: c:/mingw/bin/../lib/gcc/mingw32/9.2.0/crtbegin.o:cygming-crtbegin.c:(.text+0x25): undefined reference to `LoadLibraryA@4'
collect2.exe: error: ld returned 1 exit status
I get CanStatus =7, indicating no response. (PUDS_ERROR_NO_MESSAGE 0x00007 // No Message available.
But on PCAN -View I am able to see Sent request and response from the device.
But I am unable to see it in message buffer in eclipse.
I have linked and imported all three DLLs, PCANBasic, PCAN-ISO-TP_2016, PCAN-UDS . What I am doing wrong? or missing something?