Closed movepointsolutions closed 1 year ago
It would be nice if C++ had smth like explicit namespace
declaration which would shadow priorly declared types in favor of namespace
Looks like it's a problem that header files conflict, i.e. both redis-plus-plus and the standard header have a tls.h file. I was plan to include headers with path, e.g. including xx/xx/tls.h, instead of tls.h. However, it's a big project. I'll let you know, when I get some progress.
Regards
With quote syntax "tls.h", don't -I
I've included path for headers, and the problem should be fixed. However, I don't have a DragonFlyBSD env, and cannot reproduce the problem. Please try the latest code on master branch to see if the problem has been fixed.
Sorry for the late reply. Too busy these days.
Regards
Hi :) I've successfully built the library, so I close the issue, don't currently have root access to the machine, so can't install Redis and run the tests, but will make sure they are OK and my code works, so thanks, hola la biznas :)
Describe the bug DragonFlyBSD has 'struct tls' declared in standard headers, so test binary does not compile. /usr/local/include/tls.h:82:8: note: forward declaration of 'struct tls' struct tls; ^~~ In file included from /home/anek/movepoint.ru/redis-plus-plus/test/../src/sw/redis++/connection_pool.h:27, from /home/anek/movepoint.ru/redis-plus-plus/test/../src/sw/redis++/redis.h:25, from /home/anek/movepoint.ru/redis-plus-plus/test/../src/sw/redis++/redis++.h:20, from /home/anek/movepoint.ru/redis-plus-plus/test/src/sw/redis++/test_main.cpp:32: /home/anek/movepoint.ru/redis-plus-plus/test/../src/sw/redis++/sentinel.h:51:10: error: invalid use of incomplete type 'struct tls' tls::TlsOptions tls; ^
~~~~~To Reproduce try to compile at fresh DragonFlyBSD
Expected behavior I would like to see it building OK
Environment:
Additional context I am myself new to BSD, used Debian/Arch Linux mainly in production, but currently have DragonFlyBSD server