Originally Posted by
Salem
gcc -o prog main.c test.c
i did that and i get:
Code:
test.c: In function ‘input_test’:
test.c:21: warning: incompatible implicit declaration of built-in function ‘scanf’
test.c:21: error: ‘test1’ undeclared (first use in this function)
test.c:21: error: (Each undeclared identifier is reported only once
test.c:21: error: for each function it appears in.)
test.c:21: error: ‘test2’undeclared (first use in this function)
test.c:21: error: ‘test3’ undeclared (first use in this function)
test.c:22: warning: ‘return’ with a value, in function returning void
Code:
test.c:21: warning: incompatible implicit declaration of built-in function ‘scanf’
on main.c there is #include <stdio.h>, so why would i get this error??