You need to compile both main.c, input_buffer.c and io_helper.c together to run the program. gcc main.c input_buffer.c utils/io_helper.c -o main