I've tried reading through thread after thread and I can't seem to figure out why my main.c cannot reference anything from another other file called deq.c that is located in the same repository. I will attach the makefile code below as well as the error message.
On my main.c file, I'm attempting to make a reference to a method in the file deq.c called deq_new(). This method has already been created and fully implemented.
The error message I get when attempting to run my main file states: "C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\MKyle\AppData\Local\Temp\cck9V669.o:main.c:(.text+0x5f): undefined reference to `deq_new' collect2.exe: error: ld returned 1 exit status"
Here is my GNUmakefile provided by my professor. MakeFile image
The code for the Deq_new() method is found inside of the "deq.c" file which is included in the main.c using the #INCLUDE "deq.c" statement at the top.
The method and file are referenced correctly and something must be wrong with my makefile or something when it first attempts to compile after run is clicked. If anybody has any ideas for what else may be causing the main.c to not recognize methods from the other file in the repository, I would really appreciate it!
The main.c code is as follows: main.c file picture