Comment by HolyBlackCat on mingw32: undefined reference to...
-l has to be to the right of .c to have effect.
View ArticleComment by HolyBlackCat on Does the standard impose more requirement on the...
Yep, you're right. I agree the assert always passes.
View ArticleComment by HolyBlackCat on How to run c++ app while it linked vcpkg packages...
FYI since you're already using MSYS2, you can install libfmt from it instead of adding vcpkg to the mix.
View ArticleWhat is the significance of 'strongly happens before' compared to '(simply)...
The standard defines several 'happens before' relations that extend the good old 'sequenced before' over multiple threads:[intro.races]11 An evaluation A simply happens before an evaluation B if...
View ArticleAnswer by HolyBlackCat for What is the significance of 'strongly happens...
Here's my current understanding, which could be incomplete or incorrect. A verification would be appreciated.C++20 renamed strongly happens before to simply happens before, and introduced a new...
View ArticleComment by HolyBlackCat on Error when installing the DPP library: this...
Please add the output of which cmake and which g++.
View ArticleComment by HolyBlackCat on Error when installing the DPP library: this...
What makes you think they don't support mingw? Just tried building it with it, didn't have any issues.
View ArticleComment by HolyBlackCat on Can Microsoft C++ Compiler be used on Mac?
What is your goal with this? MSVC can run in Wine, but it's too slow for anything practical. Mac uses different compilers, normally Clang (and I think it can run GCC too).
View ArticleComment by HolyBlackCat on C++ array pointer to pointer
Pointers aren't arrays, arrays aren't pointers. buf is a pointer (that points to the first element of an array).
View ArticleComment by HolyBlackCat on Box2D 2.4: Can't Override Default Behavior with...
Off-topic, but box2d v3 was recently released.
View ArticleComment by HolyBlackCat on Software rasterizer for OpenGL and Vulkan
Mesa has a fully software implementation of GL. Don't know about Vulkan.
View ArticleComment by HolyBlackCat on In C++20, are non-reference tuple elements...
@Swift-FridayPie I don't think it will work on a tuple.
View ArticleComment by HolyBlackCat on free variable in other function's stack memory in c++
"Normally this code runs well." I doubt it, it should crash. Maybe you changed something important when isolating the example?
View ArticleAnswer by HolyBlackCat for Is it possible to have the panel (in VSCode) sit...
You could drag a file tab out into a separate window, then arrange the two windows side by side.
View ArticleComment by HolyBlackCat on Are there software rasterizers for OpenGL and Vulkan?
Mesa has a fully software implementation of GL. Don't know about Vulkan.
View ArticleComment by HolyBlackCat on creating a new file with the extension...
Show how exactly you save the file and choose the filename.
View ArticleComment by HolyBlackCat on Generate c++ class from a function
Do you want 2^N overloads? Would it be ok to write a single template function that behaves equivalently?
View ArticleComment by HolyBlackCat on When should I use a std::inplace_vector instead of...
"has the advantage of a fixed size" Or fixed capacity, rather.
View ArticleComment by HolyBlackCat on Why isn't MSVC notifying of an error here?
Even though the sanitizers are supposedly the same across compilers, I've seen cases where e.g. GCC fails to report something and Clang reports correctly. I guess it has to do with how well they...
View ArticleComment by HolyBlackCat on Why QOpenGLWidget.devicePixelRatio() isn't one?
You should support any scale. Even if you disable this scaling in your OS settings somehow, your users might have non-1 scaling too.
View Article