I have a header file that looks like this:
#pragma once
and the source file, which looks like this:
//Definitions
which I am trying to compile into a dynamic library. Unfortunately, this error message failed to communicate:
undefined reference to `microtask::log::operator<<(std::basic_ostream<char, std::char_traits<char> >&, microtask::log::severity const&)'
What am I doing wrong? I checked other stackoverflow.com questions that seemed similar, but as far as I can tell, I have a format for the operator to overload correctly.
source share