Comment by HolyBlackCat on g++ / vscode apparently cannot see my src folder?...
Strange, it shouldn't be necessary.
View ArticleComment by HolyBlackCat on How can i download a msys package with all...
@GrayFace The original question implies that OP already has MSYS2 installed, the other answer assumes that too. "packman returns 404" If this is an old MSYS2 installation, you should try reinstalling....
View ArticleComment by HolyBlackCat on How to install CMAKE on MSYS2 or MINGW64? (all...
Did you try reinstalling msys2?
View ArticleComment by HolyBlackCat on weird > thing when compiling for sdl2 in g++
It looks like you forgot to paste the second quote?
View ArticleComment by HolyBlackCat on pointer size not 8 bytes
This indicates that your compiler is in fact 32-bit, not 64-bit.
View ArticleComment by HolyBlackCat on Polymorphism using template and concepts
Achieve what exactly?
View ArticleComment by HolyBlackCat on Why does the following program printf "thread 1...
You're touching fut and prom after they're destroyed.
View ArticleAnswer by HolyBlackCat for How can I initialise a constexpr array with values...
The trick is to put the code into an immediately-invoked lambda. Then it doesn't matter if you use std::generate or a plain loop:constexpr std::array<int,100> a = []{ std::array<int,100>...
View ArticleComment by HolyBlackCat on Template parameters deduction (multiple parameters...
But this doesn't make sense, does it? If it deduces to std::map<std::string, mapped_class>, you'll have two strings per entry.
View ArticleComment by HolyBlackCat on Ways of Passing Parameters to the Constructor
Why did you delete and repost the previous question? We already linked you to the solution.
View ArticleComment by HolyBlackCat on Can't resolve undefined reference to box2D C++
Only one possible answer: this is a wrong libbox2d.a. Where did you get?
View ArticleComment by HolyBlackCat on GMP Windows installation "configure: error: could...
1. Why don't you install prebuilt GMP from pacman? 2. That MSYS in the terminal prompt means you're using the wrong environment, read What are MSYS2 environments? How do I pick one?. 3. System-wide...
View ArticleComment by HolyBlackCat on having problem with running multiple files in vs code
"try to change the ${file} with ctrl space there are no option for other folders" Well yeah, ctrl+space isn't always going to magically suggest the right thing. Type the path manually.
View ArticleComment by HolyBlackCat on Downgrading MSYS2 to a specific Mingw / gcc version
@PauloCarvalho I'd recommend asking a new question about it. Maybe we'll find a solution, or at least figure out whose bug it is.
View ArticleComment by HolyBlackCat on Copy constructors and const& versus the ARM ABI
Nevermind, I misread your comment.
View ArticleComment by HolyBlackCat on How to convert mathematical expression to lambda...
Go read about the shunting-yard algorithm. Or if ^ is the only custom operator in there, you might be able to get away with just finding those and replacing them with pow or whatever.
View ArticleComment by HolyBlackCat on MSVC Compiler Template Sizeof...() not working
Looks like a MSVC bug to me, please report.
View ArticleComment by HolyBlackCat on How to install spdlog library?
The CMake file at the link was written by the person to build their own code, and it also references spdlog to link it. Why do you think it's "spdlog's CMake file"?
View ArticleComment by HolyBlackCat on Define array of structure within a structure in C++
struct Course has to be above struct Student if you want to use the former in the latter. Also, what's up with typedef? You don't need it.
View Article