You are building test.c with C compiler, C++ code cant see C functions unless you add extern "C"
to let the C++ linker know it is C.
Do this:
test.h:
#ifdef __cplusplus
#define EXTERN extern "C"
#else
#define EXTERN
#endif
EXTERN int mult(int a, int b);