d99kris / nchat

Terminal-based Telegram / WhatsApp client for Linux and macOS
MIT License
670 stars 47 forks source link

Build error on Arch Linux #101

Closed d99kris closed 1 year ago

d99kris commented 1 year ago

Description: Compilation errors encountered when building nchat on Arch Linux with GCC 13.1.1:

In file included from /root/nchat/src/uicolorconfig.cpp:8:
/root/nchat/src/uicolorconfig.h:26:49: error: ‘uint32_t’ has not been declared
   26 |   static void HexToRGB(const std::string p_Str, uint32_t& p_R, uint32_t& p_G, uint32_t& p_B);

and

In file included from /root/nchat/src/uihistoryview.cpp:8:
/root/nchat/src/uihistoryview.h:22:8: error: ‘string’ in namespace ‘std’ does not name a type
   22 |   std::string GetTimeString(int64_t p_TimeSent);
      |        ^~~~~~

How to reproduce it: Dependencies:

sudo pacman -Syyu
sudo pacman -S git base-devel ncurses cmake gperf help2man readline openssl zlib sqlite go file

Code:

git clone https://github.com/d99kris/nchat
cd nchat

Build:

./make.sh build

Environment: