Closed xihr closed 9 months ago
I currently use GCC 13 to compile on Linux. I suppose you have 3 possible options:
#include <format>
with #include <fmt/core.h>
and std::format
with fmt::format
. You would probably need to use sed or some other utility to perform the find/replace operations. It may also be necessary to link against fmt with the linker flag -lfmt
, but I'm not 100% sure about that.-fexperimental-library
compile flag (or Clang 17 without that flag). I see that Ubuntu 22.04 has Clang 14 in the official repo, so this might be the easiest option, although I have not tested this.Actually, I just tried with Clang 14 and the -fexperimental-library
compile flag on Ubuntu 22.04, and it seems that flag isn't supported. I'm not sure why. I was basing my information off of https://en.cppreference.com/w/cpp/compiler_support
On Ubuntu 22.04, the following steps can be performed:
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt update
sudo apt install g++-13
git clone https://github.com/Lyle-Tafoya/Omega.git
mkdir Omega/build
cd Omega/build
CXX=g++-13 cmake ..
make
I will update the README with this information shortly
Can confirm you can actually get it to compile properly if you bother with actually hunting for and installing that specific test GCC 13 repository on ubuntu and ubuntu-adjacent distributions. Thanks for the README addition, it was a bit of an annoying rabbit hole to find it in the first place.
Closing this, since the necessary steps to compile on Ubuntu 22.04 are now in the README
Sorry, was out of town for the weekend. Yep, works after installing g++-13. Good to go.
Just so you know.