I'm trying to use rlutil.h but everytime these function are used in more than one header I have compiler error about multiple definition of 20-30 variables. rlutil is a simple header to color terminal in linux and windows in C and C++.
The variables are something like that
const RLUTIL_STRING_T ANSI_CONSOLE_TITLE_POST = "\007";
and the typedef something like that
typedef const char* RLUTIL_STRING_T;
I tried to add my own C guard but it didn't worked. I tried to layering the .h with my own .h/.c to make new function using the rlutil.h function but the problem is still here. I tried to make the variables extern but it's worst
I'm building it with gcc on ubuntu. I'm gonna try this at home with MVSC2017 but I think the behavior will be the same.
Any idea ?
I can provide more information. Sorry for my english i'm not a native speaker
Thank's a lot