the test main errors:

Code:

// LivinGrimoire.cpp : This file contains the 'main' function. Program execution begins and ends there.
//

#include "livingrimoire.h"

int main()
{
    Brain b1;
    unique_ptr< DiHelloWorld> dihello = make_unique< DiHelloWorld>();
    unique_ptr< DiSysOut> disys = make_unique< DiSysOut>();

    b1.addLogicalSkill(dihello.get());
    b1.addHardwareSkill(disys.get());
    b1.doIt( "hello", "", "" );
    //std::cout << "Hello World!\n";
}


also tried these and got an error:

Code:

#include <iostream>
#include "livingrimoire.h"
using namespace std;

int main()
{
    Brain b1;
    unique_ptr< DiHelloWorld> dihello = make_unique< DiHelloWorld>();
    unique_ptr< DiSysOut> disys = make_unique< DiSysOut>();

    b1.addLogicalSkill(dihello.get());
    b1.addHardwareSkill(disys.get());
    b1.doIt( "hello", "", "" );
    //std::cout << "Hello World!\n";
    return 0;
}


Output:  /usr/bin/ld: /tmp/ccUeItj1.o: in function `main': Main.cpp:(.text+0x2a): undefined reference to `Brain::Brain()' /usr/bin/ld: Main.cpp:(.text+0x6c): undefined reference to `Brain::addLogicalSkill(DiSkillV2*)' /usr/bin/ld: Main.cpp:(.text+0x90): undefined reference to `Brain::addHardwareSkill(DiSkillV2*)' /usr/bin/ld: Main.cpp:(.text+0x138): undefined reference to `Brain::doIt(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' /usr/bin/ld: /tmp/ccUeItj1.o: in function `DiHelloWorld::DiHelloWorld()': Main.cpp:(.text._ZN12DiHelloWorldC2Ev[_ZN12DiHelloWorldC5Ev]+0x1f): undefined reference to `vtable for DiHelloWorld' /usr/bin/ld: /tmp/ccUeItj1.o: in function `Chobits::~Chobits()': Main.cpp:(.text._ZN7ChobitsD2Ev[_ZN7ChobitsD5Ev]+0x13): undefined reference to `vtable for Chobits' /usr/bin/ld: /tmp/ccUeItj1.o: in function `DiSysOut::DiSysOut()': Main.cpp:(.text._ZN8DiSysOutC2Ev[_ZN8DiSysOutC5Ev]+0x1f): undefined reference to `vtable for DiSysOut' collect2: error: ld returned 1 exit status wrote:


errors many errors. Errors