I found some discussion, the answer is using static, another answer is renaming the function
but, if I don't have source code, how can I rename the function?
I also tried the static, but not work, error: "warning #2135: Static 'func' is not referenced."
What is the correct solution?
main.c
#include <stdio.h>
#include "liba.h"
#include "libb.h"
int main(int argc, char *argv[])
{
printf("Main\n");
func();
return 0;
}
liba.h
static void func(void);
liba.c
#include <stdio.h>
#include "liba.h"
static void func(void)
{
printf("lib a\n");
}
libb.h
static void func(void);
libb.c
#include <stdio.h>
#include "libb.h"
static void func(void)
{
printf("lib b\n");
}