I have an operator<< declaration in the header, and the definition in the cpp. If I compile a static library, then when I would like to use my function the linker can not find the definition. I have a linker error, LNK2019. I am using VS22. If the definition and declaration are at the same place, nothing is wrong.
Thanks for your help!