Comment by HolyBlackCat on Just installed C Compilers on windows and tried to...
Double-click test1.exe in the explorer (the "files" app), tell us what errors it shows.
View ArticleComment by HolyBlackCat on Port large VS C++ solution to linux
Nothing beats reading the project files/props, understanding what they do, and replicating that (probably in CMake).
View ArticleHow to debug DLL issues in MinGW?
When using MinGW, it's easy to run into a DLL hell, i.e. your program not running because it either doesn't find the required DLLs or finds incompatible versions of them.This can manifest itself...
View ArticleComment by HolyBlackCat on Microsoft Visual Studio 2022 Debugging error
Please translate to English, and choose one programming language tag.
View ArticleComment by HolyBlackCat on Is there any method to create of an instance of...
This compiles. What is your question?
View ArticleComment by HolyBlackCat on How can i install c++ compiler between this error
Are you behind some sort of network filter? If not, just try the same command again, it happens sometimes.
View ArticleComment by HolyBlackCat on msys2 windows open in the background not at HWND_TOP
@3CxEZiVlQ I'm curious, how did you determine if it's C or C++?
View ArticleAnswer by HolyBlackCat for lldb - how to print an object without summary?
Instead of p ... do dwim-print -R -- ....help p reveals that p is an alias for dwim-print --, and then help dwim-print reveals the option -R, which stands for "raw output".Also, as the other answer...
View ArticleAnswer by HolyBlackCat for Fix problem with textured triangle in cpp sdl2
SDL interpolates the texture coordinates linearly, while you're asking for a perspective correct interpolation.I don't think SDL_RenderGeometry() supports this. (Unless you're willing to draw each...
View ArticleComment by HolyBlackCat on Opengl Render texture unnormal
Pass 4 as the last parameter to stbi_load, since you expect the texture to always be RGBA and ignore nrChannels.
View ArticleComment by HolyBlackCat on A likely MSVC compiler bug on short C++ codes...
Can't reproduce (neither locally nor on godbolt). What compiler version?
View ArticleComment by HolyBlackCat on UB with reinterpret_cast
I second the advice of getting rid of uintptr_t. char * should work well enough in practice.
View ArticleComment by HolyBlackCat on Static linking in clang++ doesn't staticly link
Don't specify -LC:\msys64\mingw64\lib, it should get added automatically (and if not, it's a sign of a misconfiguration). Also you don't need -static-..., the -static alone implies both.
View ArticleComment by HolyBlackCat on avr-gcc ATmega4809 problem with `.rodata` section
Regarding this deleted question, the solution is A::f<T::template F>(). I was writing a comment just as you deleted it.
View ArticleComment by HolyBlackCat on Using an enum class as a key in a map when the...
@3CxEZiVlQ No comparator could make this possible.
View ArticleComment by HolyBlackCat on Why Functions are "datatype"?
Function types exist, but they are not data types (not sure what makes you think they are). They are compound types (is that what you call "derived"?) because they contain other types in them (e.g....
View ArticleComment by HolyBlackCat on How to let IDE's intellicode function properly for...
Clangd handles macros prefectly, assuming you've given it a correct compile_commands.json.
View ArticleComment by HolyBlackCat on Clang: constexpr variable must be initialized by a...
It thinks that you're passing an out-of-range index to substr. Try printing the strings and indices and confirm they are correct.
View ArticleComment by HolyBlackCat on msys2 windows open in the background not at HWND_TOP
@hetepeperfan No need to adapt it, it's just customary to not tag >1 programming language at a time without a good reason.
View Article