I had some problems earlier with declaring an array of arrays. Now I think that something is wrong with my Makefile or something.
Here is my Makefile: EEXEC = proj1 CC = gcc CFLAGS = -c -Wall $(EXEC) : main.o set.o $(CC) -o $(EXEC) main.o set.o main.o : main.h main.c $(CC) $(CFLAGS) main.c set.o : set.h set.c $(CC) $(CFLAGS) set.c
There are more functions in my set.c file, but these are the functions that I am currently testing:
DisjointSet *CreateSet(int numElements); DisjointSet *MakeSet(DisjointSet *S,int ele, int r); void Print(DisjointSet *S);
And the errors that I get in the terminal:
main.o: In function `main': main.c:(.text+0x19): undefined reference to `CreateSet' main.c:(.text+0x43): undefined reference to `MakeSet' main.c:(.text+0x5f): undefined reference to `Print'
source share