I don't know whats the problem, I'm doing everything by the book (well, at least I think so)
I have a file calle "complex.h"
int check_complex(char ch);
void read_comp1(char ch, float n1, float n2);
void print_comp1(char ch);
void add_comp1(char ch1, char ch2);
void sub_comp1(char ch1, char ch2);
void mult_comp_real1(char ch1, float n);
void mult_comp_img1(char ch1, float n);
void mult_comp_comp1(char ch1, char ch2);
void abs_comp1(char ch);
and in the file "main.c"
when I compile the files with
gcc -g -Wall -lm -o q2 main.c complex.c
main.c: In function ‘read_comp’:
main.c:16: warning: implicit declaration of function ‘read_comp1’
Does anyone know what is my mistake ? :\
thnx alot !