chronoxor / CppServer

Ultra fast and low latency asynchronous socket server & client C++ library with support TCP, SSL, UDP, HTTP, HTTPS, WebSocket protocols and 10K connections problem solution
MIT License
1.43k stars 284 forks source link

Build issues with FMT #59

Closed sab24 closed 3 years ago

sab24 commented 3 years ago

Hi Chronoxor,

Thanks for the project, it looks interesting with low latency high throughput http requests. I tried to compile the project using build/unix.sh but I received errors with FMT. It looksl ike there are problems with modules, a relative new feature in C++. I'm using archlinux and tried building it with GCC 10.2 and Clang 11.0. Do I need a newer version?

[ 22%] Built target cppbenchmark
/home/Sab/Downloads/CppServer/modules/CppCommon/modules/fmt/src/fmt.cc:1:1: error: _module_ does not name a type
    1 | module;
      | ^~~~~~
/home/Sab/Downloads/CppServer/modules/CppCommon/modules/fmt/src/fmt.cc:67:1: error: keyword _export_ not implemented, and will be ignored [-Werror]
   67 | export module fmt;
      | ^~~~~~
/home/Sab/Downloads/CppServer/modules/CppCommon/modules/fmt/src/fmt.cc:67:8: error: _module_ does not name a type; did you mean _modfl_?
   67 | export module fmt;
      |        ^~~~~~
      |        modfl
/home/Sab/Downloads/CppServer/modules/CppCommon/modules/fmt/src/fmt.cc:70:33: error: keyword _export_ not implemented, and will be ignored [-Werror]
   70 | #define FMT_MODULE_EXPORT_BEGIN export {
      |                                 ^~~~~~
/home/Sab/Downloads/CppServer/modules/CppCommon/modules/fmt/include/fmt/core.h:286:1: note: in expansion of macro _FMT_MODULE_EXPORT_BEGIN_
  286 | FMT_MODULE_EXPORT_BEGIN
      | ^~~~~~~~~~~~~~~~~~~~~~~
/home/Sab/Downloads/CppServer/modules/CppCommon/modules/fmt/src/fmt.cc:70:40: error: expected unqualified-id before _{_ token
   70 | #define FMT_MODULE_EXPORT_BEGIN export {
      |                                        ^
/home/Sab/Downloads/CppServer/modules/CppCommon/modules/fmt/include/fmt/core.h:286:1: note: in expansion of macro _FMT_MODULE_EXPORT_BEGIN_
  286 | FMT_MODULE_EXPORT_BEGIN
      | ^~~~~~~~~~~~~~~~~~~~~~~
/home/Sab/Downloads/CppServer/modules/CppCommon/modules/fmt/src/fmt.cc:70:33: error: keyword _export_ not implemented, and will be ignored [-Werror]
chronoxor commented 3 years ago

Fixed!