I just call these three .c files in turn, but when I call each file, one error pops up: collect2: error: ld returned 1 exit status enter image description here

  • 2
    First you need to compile each separately gcc -c laba_linux.c -o laba_linux.o to get the object files. And then put them together gcc laba_linux.o main.o ... -o result_program -lncurses - Mike
  • gcc -o main.exe file1.c file2.c ... - VTT
  • one

0