0

im writing a program but everytime I want to run the code.

#include <iostream>

// #include "Figures.h"
#include "Header.h"

int main()
{
    // menu_function();
    draw_field();
    return 0;
}

there comes the following error-message:

Undefined symbols for architecture arm64:
  "draw_field()", referenced from:
      _main in main-34fba8.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Im searching since days for a solution, but no one fixed the error. Btw I included the function I try to run in the main file and it worked fine.

πάντα ῥεῖ
  • 85,314
  • 13
  • 111
  • 183

0 Answers0