Category "c++"

windows - how to link against API sets (*ms-win*) instead kernel32.dll, ntdll.dll etc.?

How do I specify explicitly to MSVC compiler / linker to link against API sets (*ms-win* pattern matcing dlls) instead kernel32.dll, ntdll.dll etc.? For example

How to subtract char out from string in c++?

Hello I want to know how to subract string from string For example If string s = "124ab" I can easily extract integer by using sstream but I don't know how to e

ByBit Api. Open Active Order. Return "empty param of timestamp". Libcurl c++

Please help!!!! Is there a working example of opening an order in C++ Constantly sending a request to open an order POST https://api.bybit.com/private/linear/or

GCC, constant tables and .rodata

I have a strange problem with gcc and constants and .rodata Let's assume: typedef const struct { const char *a; } data_t; typedef const struct { const dat

Vector in C++ module causes useless Bad file data GCC output

TL;DR: GCC 11.2.0 (image f7ea55625e09) + C++20 + <vector>'s std::vector<anything> cause useless output. How to get out something I can work with? Co

Handle multiply cameras in Vulkan

I'm trying to implement rendering with different cameras. When I use only one camera, everything is ok. But when I have two cameras with different transformatio

When assigning value to a member function pointer, the assignment tampered with other data

Before the assignment operation, the member variable u works fine, see figure 1 After the assignment operation, the data of the member variable u is tampered, s

Where is query pipelining in libpq?

I'm developing a high load server application using C++ and libpq (libpqxx is very unstable). I use async queries in threads to improve performance. But I've di

configure: error: Fortran compiler cannot create executables

I'm trying to install Quantum ESPRESSO on my computer and have run into an issue when using the ./configure command in the unpacked directory. $ ./configure ch

UGameplayStatics Emitter Attached but not completing

I have created a particle effect and I am attaching it using UGameplayStatics::SpawnEmitterAttached(Elecricity, gunMesh, TEXT("MuzzleFlashSocket")); but the par

AVX2 code cannot be faster than gcc base optmization

I am studying AVX by writing AVX code with inline assembly. In this case, I tried to implement AVX in a simple function. The function name I made is lower_all_c

using vkEnumerateInstanceVersion to get exact Vulkan API version

I am using vkEnumerateInstanceVersion to get the vulkan api version and pass it to VkApplicationInfo struct. I can easily differentiate between VK_VERSION_1_0 a

Most insanely fastest way to convert 9 char digits into an int or unsigned int

#include <stdio.h> #include <iostream> #include <string> #include <chrono> #include <memory> #include <cstdlib> #include <

Why does C++'s "using namespace" work the way it does?

All students are surprised by the behavior of C++ using-directives. Consider this snippet (Godbolt): namespace NA { int foo(Zoo::Lion); } namespace NB {

Boost.Asio async_read a string from a socket

I'm trying to write a function async_read_string_n to asynchronously read a string of exactly n bytes from a socket with Boost.Asio 1.78 (and GCC 11.2). This is

How to prevent the enter key from making a new line in Clion?

PHOTO 1 Here I press "Enter" key to complete the code. But IDE will automatically get my code to a new line as is shown here PHOTO 2 ,which makes me uncomforta

lsoracle when make is failed.I don't know why

enter image description here /home/lcl/LSOracle/core/commands/optimization/optimize.hpp: In member function ‘void alice::optimize_command::synth(std::stri

CGAL:: Surface Reconstruction -- reconstructed point cloud can't be rendered/visualize in any 3D viewers

I used CGAL to preprocess my pointcloud(.ply) file. Results after each preprocess can be rendered/visualize. But after applying advance front surface reconstruc

Integer literal for fixed width integer types

Is there some c++ proposal for Integer literal for fixed width integer types like this? // i's type is unsigned int auto i = 10u; // j's type is uint32_t auto j

How to make use of SIMD capability for sum of squared differences between 8-bit components of RGBA pixels?

The below code is trying to extract the red, green and blue channel of a pixel value and performing an arithmetic with another set of RGB values. It seems that