Dev-C++ Download u/LowEmu3705 • Dev-C++ Download c++ tutorialdownload devcdownload dev-c download dev c https://dev-c.org/
Why won't it work??? u/Liowan • Why won't it work??? Hello everyone! For all of you who have been using DevC++ for years, I'm having a problem I'm hoping you can help me solve. I want to use wxWidgets 3.1.5 library with the Embarcadero DevC compiler, but for the life of me, I can't get it to work! Can anyone send me instructions on how to: (A) Get EMB to compile the library source code(B) How to install it for useafter it's compiled. Indeed, I've trying for weeks to get this straightened out to no avail. I'm sure it's something smple I'm doing(or not doing) - Now none of my DevC compilers are working!
Consteval behavior in GCC and MSVC u/erbuka • Consteval behavior in GCC and MSVC Hello everyone, quick question. I have the following code: static constexpr std::string_view s_characters = "abcdefghijklmnopqrstuvwxyz" "ABCDEFGHIJKLMNOPQRSTUVWXYZ" "0123456789"; static consteval auto get_code_points() { std::array<std::int32_t, s_characters.size()> ret = {0}; std::ranges::transform(s_characters, ret.begin(), [](const char c) { return static_cast<std::int32_t>(c); }); return ret; }; ... auto code_points = get_code_points(); So, basically this works on GCC 11, while MSVC complains that a "call to immediate function is not a constant expression". I know that I can simply remove consteval and it works, but here it seems a good place to use it: I know the characters that I need at compile time, I just need them to be integers, so to me it seems like a perfect place to have a consteval function. Note that I can't make it constexpr because I'm passing that array to a C function that requires a non-const int pointer. From my understanding, consteval should just be an immediate function and can be called even from a non-constexpr context. So, MSVC bug or I got it wrong? Thanks