unresolved external symbol: write_date_time(char*, unsigned int)
skaravos opened this issue · comments
Calling loguru::write_date_time()
function causes linker errors on systems where unsigned
!= size_t
.
The declaration of write_date_time()
uses unsigned
for its buffer size and the definition in the .cpp uses size_t
.
The function signature in loguru.cpp should be changed to match the header file.
Actually it is probably better to change the function signature in the header file to use size_t
.
If you change the source file to be unsigned
you'll get compilation warnings because the write_date_time()
function is called with the result of strlen()
(which is always size_t
)