-2

The main function which I used to test program.

  • Creating an object of the class does not work. Not sure if the issue is from my base class but I have included the code down bellow.
  • I'm also not sure if this could be a compiler issues (on a Mac)

the person class is the base class and the uninfected is the derived class

Undefined symbols for architecture x86_64:
  "Person::Person(Position&, char)", referenced from:
      Uninfected::Uninfected(Position&, char) in test2-14580a.o
  "Person::~Person()", referenced from:
      Uninfected::~Uninfected() in test2-14580a.o
  "Position::Position(unsigned long, unsigned long)", referenced from:
      _main in test2-14580a.o
  "typeinfo for Person", referenced from:
      typeinfo for Uninfected in test2-14580a.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
admin@admins-MBP Exam lab 2 % 
Jayden
  • 1

0 Answers0