p-ranav / indicators

Activity Indicators for Modern C++

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multiple include of the single header version lead to the multiple defined symbol error on windows

F-I-D-O opened this issue · comments

I had a hard time with this library after using the progress bar in a second file. The problem is on the following line:

size_t terminal_width() { return terminal_size().second; }

After adding the inline specifier, everything works fine.

Thanks. Will add the inline specifier and update master