I will be brief - my environment is Windows 10, CodeBlocks and mingw-w64. I created a C static library with 1 .h file and 1 .c file.
UDS_t.h has:
Code: Select all
#include "UDS/PCAN-UDS_2013.h"
#ifdef __cplusplus
extern "C" {
#endif
void test();
#ifdef __cplusplus
}
#endif
Code: Select all
#include <stdio.h>
#include <stdlib.h>
#include "UDS/UDS_t.h"
void test()
{
uds_status retval = UDS_Initialize_2013(PCANTP_HANDLE_USBBUS1, PCANTP_BAUDRATE_500K, 0, 0, 0);
}
Code: Select all
test();
AFAIK function definitions are in .lib file that I included - so why does it not see it?
I am losing 1 full day on this, so I decided to ask for help.
