This looks like a linker error. You need to make sure you link your executable properly:
cc -c general.c
cc -c main.c
cc general.o main.o
./a.out
The -c
flag instructs your compiler not to link yet. In order to link the object file containing config
needs to be available at that moment.