Quantcast
Channel: User HolyBlackCat - Stack Overflow
Browsing all 1285 articles
Browse latest View live

Comment by HolyBlackCat on Code runner extension runs my code slowly

What OS? Try adding this directory to antivirus exceptions, if you have one. Make sure your directory is not on google drive.

View Article


Comment by HolyBlackCat on clangd cannot find ue5 header files

Isn't it supposed to be called compile_commands.json? Check if this file is being found: close all tabs other than your single source file, press Ctrl+Shift+P -> Reload Window, and look in Output...

View Article


Answer by HolyBlackCat for Why double pointer has a type

Pointers-to-pointers are not special in this regard. The answer for them is the same as for any other pointers:It tells the compiler how to interpret the pointed value, when you dereference the...

View Article

Answer by HolyBlackCat for clang++ 14 does not generate PDB file

Use -g -gcolumn-info -gcodeview when compiling, then -fuse-ld=lld -g -Wl,--pdb= when linking. This produces ??.pdb alongside ??.exe.You can also pass a custom PDB file path to -Wl,--pdb=??.I'm unsure...

View Article

Comment by HolyBlackCat on /usr/bin/ld: cannot find -lstdc++: No such file or...

Weird, I think all of those should've been installed by default with your compiler. Did you do anything unusual with your system?

View Article


Answer by HolyBlackCat for process_begin: CreateProcess(NULL, ls, ...)...

rm is not a command that exists on Windows. At least not by default.I recommend installing MSYS2 and installing Make in it. MSYS2 provides ports of Linux-like utilities, including rm. Using its make...

View Article

Comment by HolyBlackCat on Can't find libpython3.dll with msys2 compiler and...

"can't run this execute in native windows" Well, what error do you get? Also, what does which gcc say?

View Article

Comment by HolyBlackCat on C++ Operator Precedence ( gcc and clang )

This is a duplicate of What are sequence points, and how do they relate to undefined behavior?.

View Article


Comment by HolyBlackCat on Creation of objects in c++

@AhmedAEK Pre-C++17 compilers had to reject the second one if the class is non-movable, and now they're not allowed to reject that.

View Article


Answer by HolyBlackCat for Creation of objects in c++

Before C++17, in Foo f1 = Foo(); the compiler was allowed to create a temporary Foo instance, then move it into f1 (look up "move semantics").Since C++17, the compiler isn't allowed to create a...

View Article

Comment by HolyBlackCat on Why Vscode doesn't works well on ubuntu like it...

Add the exact steps, what you're doing, what you expect, and what actually happens. Remove the rant-y parts.

View Article

Comment by HolyBlackCat on catch multiple exceptions from initializer list

Wrap your news in member functions, and have those member functions catch exceptions. Call them from the member-init-list.

View Article

Comment by HolyBlackCat on May a vendor add functions in a standard library...

@user12002570 I've reopened this. Only the first dupe was relevant (the rest don't cite the standard), and it quotes the same question as I do in my deleted answer. The problem with this quote is that...

View Article


Comment by HolyBlackCat on How to get the file size in bytes with C++17

@ThomasWeller Not 100% sure what I did to deserve it, but thanks. :) I don't think I have favorite answers, pick any you like.

View Article

Comment by HolyBlackCat on ‘The preLaunchTask ‘C/C++: g++.exe build active...

Rename the file to only contain latin characters, no chinese (I assume that's what that is?). And the same thing for the directory it's in, and all the parent directories. If that doesn't work, move it...

View Article


Comment by HolyBlackCat on May a vendor add functions in a standard library...

So this is ill-formed NDR, not just UB.

View Article

How do I use SDL2 in my programs correctly?

I want to make a game using SDL2, but I'm unable to compile and/or run my code, please help!SDL2 is notoriously hard to set up, and it's often the first library aspiring game developers try to use.This...

View Article


Comment by HolyBlackCat on Code analysys shows an error, but the code compiles

@KamilCuk Eh. The implied question here is how to fix the intellisense to highlight this correctly. I'd rather edit this (if you don't like this wording) than close the question over semantics.

View Article

Comment by HolyBlackCat on Replacing std::visit with mapbox's variant visit...

From the readme it looks like you want mapbox::util::apply_visitor(lambda, m_sheet);.

View Article

Comment by HolyBlackCat on Makefile error "include/Mavic.hpp:14: *** missing...

It looks like Make tries to use your header as if it was a makefile.

View Article
Browsing all 1285 articles
Browse latest View live