I'm trying to compile libft.a
and main.c
with this command:
gcc -Wall -Werror -Wextra -I./inc/ -L./inc/ -lft main.c
and this is what I get:
/tmp/ccuwcCPB.o: in function « main »:
main.c:(.text+0x1b): undefined reference to « ft_putchar »
collect2: error: ld returned 1 exit status
I have tried to remove my header file and I get another error about implicit declaration, so this is not a header problem.
I have tried to use a different libft.a
coming from an other student (same work) but same problem again.
Does someone have an idea about this error?