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

Answer by HolyBlackCat for Are acquire-release semantics transitive across...

First of all, for the future readers, the first example implies acquire/release despite it not being spelled in the code (that part of the wiki talks about how different orders affect this...

View Article


Comment by HolyBlackCat on Accesssing fields from a struct[] returns a very...

Can't reproduce (neither locally nor on godbolt). What compiler version?

View Article


Comment by HolyBlackCat on cpython/pyatomic_gcc.h is not a file or a directory

It's not enough to add the include path to the c_cpp_properties.json (that only affects the highlighting in the IDE). You also need a compiler flag.

View Article

Comment by HolyBlackCat on Is this code incorrect, which I found in a C++ book?

There's no #import in the question.

View Article

Comment by HolyBlackCat on setting up c++ in vs code

Disable your antivirus software.

View Article


Comment by HolyBlackCat on Linker can't find mingw64 library?

Don't confuse MinGW and GCC. MinGW is specifically a version of GCC for Windows. -lmingw64 -lSDL2main -lSDL2 is wrong. On MinGW you'd use -lmingw32 -lSDL2main -lSDL2 (even on 64 bit), but on Linux, you...

View Article

Comment by HolyBlackCat on Can't draw multiple objects using SDL?

Note that we don't get notifications when you reply if you don't add @username.

View Article

Comment by HolyBlackCat on How to compile a DLL via mingw32-gcc with...

There's nothing wrong with the macros. It's not a windows-only thing too, on Linux you want __attribute__((__visibility__("default"))) to be able to build the library with -fvisibility=hidden.

View Article


Comment by HolyBlackCat on VS Code doesn't set current opened folder as cwd

Try "CHERE_INVOKING": "yes" env variable.

View Article


Comment by HolyBlackCat on Static linking of libsodium

Drop -static-libgcc -static-libstdc++, they are unnecessary when you have -static. Try installing libsodium in msys2 and use that version.

View Article

Comment by HolyBlackCat on Incremental compilation using Makefile

@john I for one consider non-recursive makefiles better. accu.org/journals/overload/14/71/miller_2004

View Article

Comment by HolyBlackCat on C memory leak warning

Three upvotes for the three-star programmer, hmm.

View Article

Comment by HolyBlackCat on 'using XXX = ; using enum XXX' inside a class...

Yeah, looks like a MSVC bug. Report it.

View Article


Comment by HolyBlackCat on Move semantics for a transparent function/decorator

What is the question exactly? What to return from the third overload? The return type should be Exception &&, then return std::move(e);.

View Article

Comment by HolyBlackCat on VSCode: annoying copy&paste feature

What? Does this happen with all extensions disabled?

View Article


Comment by HolyBlackCat on Cross Compiling C++ code for Intel machines

What do you mean by "port the executable to the SBC" and how is that different from cross-compiling?

View Article

Comment by HolyBlackCat on Error while debugging using gdb debugger on VS...

This isn't an error. This message appears whenever you start debugging.

View Article


Comment by HolyBlackCat on .clangd: use different compiler flags depending on...

@SO_fix_the_vote_sorting_bug What are you talking about? Manually running the compiler is unsuitable for any remotely large project where you need to have incremental compilation to get sane build...

View Article

Comment by HolyBlackCat on Avoid having to prefix usage of templated method...

In your specific case it's not needed because hi isn't a template. But in general, there's no way around it (other than switching to non-member functions).

View Article

Comment by HolyBlackCat on Is there a type_traits way to check if a type is...

@TypeIA See edit.

View Article
Browsing all 1350 articles
Browse latest View live


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