What are undefined reference/unresolved external symbol errors? What are common causes and how to fix/prevent them?
I'm trying to make similar to std::round() function using SSE(1,2,3) instructions but have some issues with certain values and/or logical operators. Here's my c
In a project I read, there are two header files and two declarations for the same class. One is used by programs that use this library, serving as an interface.
I've followed the instructions here to setup VSCode with C++ on Windows 10 with MingGW https://code.visualstudio.com/docs/languages/cpp and I've followed the in
With C++20, we've gained templated lambdas, great! []<class T>(){}; Is it possible to call a lambda callback with a template parameter,
I've found on this forum the following snippet witten by user Ben Voigt: //forward declaration template<typename T> T getline_as(std::istream& s); te
Still new to c++ so I apologize if this is really obvious or something. Currently I have a small program (~250 lines) throwing a segmentation fault. There's a s
I'm implementing a fake 3D rendering using raycasting method (such as Wolfenstein3D). I have following the permandi's tutorial (https://permadi.com/1996/05/ray-
I'm currently learning C++, and at the moment I'm starting off by making multiple kinds of calculators to test my problem solving capabilities
I have the below C++ code which issues a compilation warning as shown below. Case 1: char temp_buffer[80]; double **data; .... sprintf(temp_buffer, "%.*g", size
I am trying to write a very simple game using C++ and SDL2. I have a gameObject class and a player object. I am trying to change the update function for the pla
In order to use auto-vectorization for a c++ code which will be running on x86-64 and aarch64 processors, is just adding #pragma omp simd in t
EDIT: After some more trying and testing, it seems to set down to changing stack size everytime I change code and I want the program to run. If I don't change t
I'm doing some experiments on printf(), my code is shown below: #include <iostream> // std::cout #include <thread> // std::thread vo
I am trying to integrate OpenCV framework in my cocoapod project. The steps I have followed to integrate OpenCV Deploy OpenCV framework to the private repositor
C++ 20 modules guaranteed backward compatible so modules can import headers. And Visual Studio introduced header file import modules,is this stardard or just a
I'm designing an app recently. For some reasons I can not use the ssh-key to connect to the remote server, so I wonder whether I could just pass an encrypted pa
I'm new in FFmpeg. I want to generate a pure black stream using FFmpeg, and I don't want to use the FFmpeg command. I know below command can work. ffmpeg -f lav
Why is this code not dividing correctly? This code is supposed to find the sum of all the numbers that can mod b(from 1 to a), and the numbers
I have following header : #ifndef MY_TEMPLATE_CLASSES_H #define MY_TEMPLATE_CLASSES_H #pragma once #include <cstdio> #include <iostream> #include