I have a header file included in the main but when I compile the main, I have an error saying that the linker failed.
I tried to find the object files but I cannot find them. I think the problem may come from my machine. I am kind of a beginner so I don't know how to solve this
When I try compiling my code I get this error:
Undefined symbols for architecture x86_64:
"_intClassic", referenced from:
      _main in main-53b7e4.o
  "_intQuadrature", referenced from:
      _main in main-53b7e4.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
@zwol @JonathanLeffer I have 3 files in my project
main.c,integral.handintegral.c.integral.ccontains the code of the functionsintClassicandintQuadraturethat allow me to calculate different types of integral. Inintegral.hI declared the functions and structures I use. Finally in the main I includedintegral.h. Also$ gcc -o output file1.o file2.ocan this command help me ?
 
    