Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple definition of const RLUTIL_STRING_T ANSI_CLS[...] #51

Open
bitsycore opened this issue Oct 5, 2017 · 0 comments
Open

Multiple definition of const RLUTIL_STRING_T ANSI_CLS[...] #51

bitsycore opened this issue Oct 5, 2017 · 0 comments

Comments

@bitsycore
Copy link

bitsycore commented Oct 5, 2017

Hello,
I tried to use rlutil.h in C, but when I include it in multiple file, "const RLUTIL_STRING_T ANSI_[..]" have multiple declaration, so I had to make a rlutil.c with the declaration of the variables and making them extern on the header.

for the .h extern const RLUTIL_STRING_T ANSI_CLS;
for the .c const RLUTIL_STRING_T ANSI_CLS = "\033[2J\033[3J";

It is better explained on a answerd on my stack question.

https://stackoverflow.com/questions/46591356/c-guard-not-work-as-intended-with-rlutil-h/46592048#46592048

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant