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

Comment by HolyBlackCat on Tried running a command "sudo apt update" in Ubuntu

Post on askubuntu.com or unix.stackexchange.com.

View Article


Comment by HolyBlackCat on weird behaviour of C++ programs built in MSYS2 -...

A DLL issue, see the link. If that doesn't help, please tell.

View Article

Comment by HolyBlackCat on SDL2 Window won't show

How did you download SDL2? Using your package manager, or you built it from source? Also you could try doing it without WSL (since apps compiled in WSL can't be reasonably shared with other Windows...

View Article

Comment by HolyBlackCat on Generic Perfect Forwarding of Function’s Result

Does the stuff you want to do depend on the return value? If not, perhaps do it in a scope guard?

View Article

Comment by HolyBlackCat on invalid initialization of reference pair

When I started learning C/C++ 10+ years ago, I had this exact compiler verison. D:

View Article


Comment by HolyBlackCat on Overloading Functions with Dummy Structs vs...

Yes, this looks like a good idea. baz should use a switch without a default: branch to make your compiler warn if you forget a enum (GCC and Clang warn, unsure about MSVC). You could even make baz...

View Article

Comment by HolyBlackCat on set python path in MSYS2

Having to modify MSYS2 PATH is a bad sign, it usually means you're mixing different environments. Read this: What are MSYS2 environments? How do I pick one?

View Article

Comment by HolyBlackCat on How to install a newer gcc compiler?

You're not using the compiler you have installed in MSYS2, but some other compiler you installed before. Add more information, how you're running it, how do you know its version, etc. Also please...

View Article


Comment by HolyBlackCat on std::optional is not available though I'm using G++9

Do you literally have # in # set(CMAKE_CXX_STANDARD 17)? # makes it a comment. Also GCC 9 is quite old, even if it supports <optional> updating is a good idea.

View Article


Comment by HolyBlackCat on Unable to properly use Visual Studio Code for C++...

undefined reference to WinMain means you don't have a main() function. You probably forgot to save the file, and are compiling an empty file.

View Article

Comment by HolyBlackCat on fatal error: features.h: No such file or directory...

Every library you use, you must recompile with MinGW. E.g. you can't use GTK you installed through apt (which is compiled for Linux) for MinGW apps. As always, I recommend installing libs for MinGW...

View Article

Comment by HolyBlackCat on Clarification about pointer to constant Foo where...

Yes, your reasoning is correct.

View Article

Comment by HolyBlackCat on OpenGL texture not showing

We generally don't want to debug code that doesn't fit into the question. renderdoc.org might help.

View Article


Comment by HolyBlackCat on Setting values inside a tuple of vectors in a...

Is this your actual code? It works for me after I fix the typos (SingletoneTuple vs SingletonTuple, passing Singleton::Instance().singletonTuple instead of singleton to get(), etc), and I'm unsure...

View Article

Answer by HolyBlackCat for Why there is a need to not add a space in the name...

It's not a VSC problem, you're using a poorly written extension ("Code Runner") to run your code.When compiling a file with spaces in the name, the filename must be quoted (as shown in the other...

View Article


Comment by HolyBlackCat on Why is the arrow operator not generated?

The answer is always the same: it wasn't proposed yet, or the proposal wasn't accepted. != being generated automatically is a new feature, it's not surprising they didn't try to add other operators all...

View Article

Comment by HolyBlackCat on #include errors detected based on information...

How your c_cpp_properties.json looks like? What compiler you have installed?

View Article


Comment by HolyBlackCat on Float assignment gives random nan or -nan value

This is your exact code, right? The output is from running the executable several times?

View Article

Comment by HolyBlackCat on why strlen has value 5, but when i use it in for...

Please always attach code as text, not pictures. I can't paste and run code from a picture. Why should I not upload images of code/data/errors?

View Article

Comment by HolyBlackCat on how can I compile my user defined library in c++?...

Your files are not in the current directory, they are in C++ Proj subdirectory. Either cd to it or do gcc "C++ Proj/main.cpp" .... (or rather with g++ instead of gcc, the latter is a C compiler).

View Article
Browsing all 946 articles
Browse latest View live




<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>