3
I created a static library on C
, that is, after compiled the file .c
, generated a file with extension .a
. In the archive .c
implemented some functions. How could I read that lib in another program and call a function from it? I’m just giving the include. h in the program, and when I compile the program it displays in the error message: indefinite reference to func() that follows below:
#ifndef STATIC_H
#define STATIC_H
extern int func();
#endif
she is with extension . h?
– Ricardo
the static library is with extension . a
– Vynstus