Closed yurivict closed 5 years ago
@yurivict Are you using c++17
compliant compiler? Structure std::variant
is part of the c++17
standard, hence the error if I'm not mistaken.
@sim590 It uses -std=gnu++14
, not -std=c++17
that is needed to enable c++17
features.
Additionally, the config.h
header is missing:
/usr/ports/misc/dpaste/work/dpaste-0.3.3-55-gf27df83/src/bin.h:31:10: fatal error: 'config.h' file not found
#include "config.h"
^~~~~~~~~~
1 error generated.
So it is currently broken.
@sim590 It uses
-std=gnu++14
, not-std=c++17
that is needed to enablec++17
features.
The check is missing in CMake, but is not missing in Autotools. Therefore, you're using CMake to build. Please, include those information when you're supplying a bug. I have to say that I may have ignored CMake for a bit when doing my last changes. That is wrong and I'll fix it.
Additionally, the
config.h
header is missing:/usr/ports/misc/dpaste/work/dpaste-0.3.3-55-gf27df83/src/bin.h:31:10: fatal error: 'config.h' file not found #include "config.h" ^~~~~~~~~~ 1 error generated.
So it is currently broken.
I see that it's missing a
#ifdef HAVE_CONFIG_H
#endif
Again, another CMake related issue. I'm on it.
@yurivict Can you try to build following changes in #14 (not yet merged) and confirm that the issue is fixed.
Thanks.
Actually, you can't build it if #11 is not resolved also. If you can try that by manually including the json.hpp
file, then we'll know if this issue is resolved.
I have found a fix for #11 and I am integrating it now into master branch as well as the fix for this PR that I have tested on my machine. Since I have not received any news on this issue, I will consider that #14 fixes this issue, so I can close it. Feel free to try master branch again and reopen.
Revision
0.3.3-55-gf27df83
. FreeBSD 11.2 amd64