↧
Comment by HolyBlackCat on MSYS2, clang last version does not appear in...
You almost never want gcc or clang packages, they are cygwin-based. You want mingw-w64-...-clang and mingw-w64-...-gcc. Consult What are MSYS2 environments? How do I pick one?.
View ArticleComment by HolyBlackCat on How to share a "global variable" from a static...
What's the benefit of making the core static?
View ArticleComment by HolyBlackCat on what is "viewport" mentioned in the raytracing in...
The scene geometry might have size measured in something other than pixels (meters?), so being able to scale it is useful.
View ArticleComment by HolyBlackCat on How to create a concept that accepts only...
We're not a code writing service. Try to learn how to do it on your own, and if you hit any difficulties, show us your code and tell what problems you're having with it.
View ArticleComment by HolyBlackCat on Is there a C++20 concept that will be called when...
If you specifically want to log GL calls, you could write your own glad-like library. There's an official registry (list) of GL functions which you can parse, and generate your library from.
View ArticleComment by HolyBlackCat on MinGW missing _mingw.h
You're doing something very wrong. Those compilers definitely don't have broken windows.h headers. Either you're combining standard libraries from several different compilers, or defining some weird...
View ArticleComment by HolyBlackCat on What is the idiomatic way to have a member...
Or better template <std::same_as<T> U = T>.
View ArticleAnswer by HolyBlackCat for Why can't C++ concepts use a simple requirement to...
I know concept HasInner = requires { typename T::inner; }; is ok. But I want know why the first one is not ok.Because requires{ T::inner; } expects T::inner to not be a type (but rather a variable or a...
View ArticleComment by HolyBlackCat on C++ function returning by value can return rvalue...
@ArthurTacca The answer is correct. Expressions never have reference types, so std::move only changes the value category to an rvalue, and not the type.
View ArticleComment by HolyBlackCat on Static C++ check for pure virtual functions passed...
"But apparently one can't just call ... in a macro." Yep. Do you know how to call a member function pointer?
View ArticleComment by HolyBlackCat on Unable to drag ImGUI window outside main SDL window
Sounds like a bug that you should report.
View ArticleAnswer by HolyBlackCat for Why do I get "SDL2.dll not found" error when...
SDL2_image, as the name implies, is for SDL2, not for SDL3.It seems a version of SDL_image for SDL3 yet wasn't released yet, but but they do support SDL3 in their main branch. So you'll have to build...
View ArticleComment by HolyBlackCat on my code doesn't work i use gnu++14 i am beginner...
@AbdulAzizBarkat That Q didn't have a proper answer. I've now added one, but as always I think we should make sure that questions have sane answers before using them as dupe targets.
View ArticleComment by HolyBlackCat on constexpr function not compiling post gcc 10
Just replace constexpr int ans with int ans? Function params are never considered to be constexpr inside of the said function. (But its return value can't be constexpr if everything it does is possible...
View ArticleAnswer by HolyBlackCat for How to compile C++ std::thread code with MinGW?
The original MinGW doesn't support multithreading, but almost nobody uses the original MinGW those days. (Other than newbies that don't know better.)Prefer MinGW-w64, which does support it. You can...
View ArticleComment by HolyBlackCat on How can I initialize a random struct type using...
This is a problem specifically with array members. Just don't use them, use std::array (or better std::string in this case, as NathanOliver suggests below). Also I recommend using (...) instead of...
View ArticleComment by HolyBlackCat on msys2 pacman hanging when asked to install SDL2
Try adding the installation directory to antivirus exceptions. If this doesn't work, I'd ask MSYS2 devs.
View ArticleComment by HolyBlackCat on g++ cannot link .h and .cpp even with correct...
This isn't a complete program, you're missing the implementation of return_int (which can be in a separate .cpp file). This is what the error is telling you.
View ArticleComment by HolyBlackCat on How do I statically link libigl on windows?
@thedreamswind They link libigl into an application made with godot. I don't see an issue here.
View Article
More Pages to Explore .....