10sabana / SnakeGame_macos

Snake Game with C++ For MAC OS
2 stars 0 forks source link

Linker Error #2

Open 1chooo opened 1 year ago

1chooo commented 1 year ago

Linker Error

I truly appreciate the project you have created, which has also been a great source of inspiration for me. However, I encountered a "LINKER ERROR" when attempting to clone your project onto my localhost. Please find the error message pasted below. If further assistance is needed to resolve this issue, please feel free to DM me. Thank you very much!

Error Message

Undefined symbols for architecture x86_64:
  "_cbreak", referenced from:
      Initialize() in main-4dba17.o
  "_clear", referenced from:
      Initialize() in main-4dba17.o
      Render() in main-4dba17.o
  "_curs_set", referenced from:
      Initialize() in main-4dba17.o
  "_endwin", referenced from:
      _main in main-4dba17.o
  "_halfdelay", referenced from:
      Poll_Input() in main-4dba17.o
  "_initscr", referenced from:
      Initialize() in main-4dba17.o
  "_keypad", referenced from:
      Poll_Input() in main-4dba17.o
  "_mvprintw", referenced from:
      Render() in main-4dba17.o
  "_noecho", referenced from:
      Initialize() in main-4dba17.o
  "_refresh", referenced from:
      Render() in main-4dba17.o
  "_stdscr", referenced from:
      Poll_Input() in main-4dba17.o
      _main in main-4dba17.o
  "_wgetch", referenced from:
      Poll_Input() in main-4dba17.o
      _main in main-4dba17.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
1chooo commented 1 year ago

Above all, I guess the difference between two factors is -lncurses. However, at the same time, I haven't find any document regarding -lncurses.