Questions tagged [c++]

0 votes
2 replies
I am currently trying to save a set of integers in a int array, by redefining string into numbers, then store it in the array
I am trying to convert input text/numbers (string), which will include any characters, but I want to separate the numbers from the characters and...
asked 4 months ago
2 votes
1 replies
`std::filesystem::path::operator/(/*args*/)` not working as expected
I have a class with an initialiser list in the constructor where one of the fields I'm initialising is a std::filesystem::path but it doesn't see...
asked 4 months ago
1 votes
1 replies
Getting a “Segmentation fault: 11” when finding number of inversions using mergesort in C++
I am writing a C++ program that finds the number of inversions in a vector using merge sort. An inversion happens when the i'th element is greate...
asked 4 months ago
0 votes
0 replies
Header files not found in Atom editor for C++
I'm trying to use the Atom editor for writing C++ code. I want to use the linter-gcc package, but I keep getting the error that it cannot find my...
asked 4 months ago
-1 votes
0 replies
How to record relative facial landmark points that are invariant to head pose?
I am using OpenCV and dlib in conjunction with Kazemi's 68 shapes landmark detector. The facial landmark detection and tracking of points isn't a...
asked 4 months ago
0 votes
1 replies
How does associativity of operator work during evaluation of expression?
I was learning precedence rule in C++. In which conditional operator is said to have Right to Left associativity. I interpret this as evaluation...
-1 votes
0 replies
How to get QColor in C++ from QML (java script: color ) truly?
I need to send a color from QML to C++ source by an INVOKABLE function. -1 Hi there, welcome to StackOverflow. This looks like an interest...
asked 4 months ago
0 votes
0 replies
Fatal error with afxv_w32.h: WINDOWS.H already included
I am trying to build and run an old (and quite large (approx. 100+ source and header files)) VS project. It was originally compiled using VS2012...
1 votes
3 replies
Is this string addition a valid expression?
I was curious if the compound assignment operators are valid for multiple parameters. My guess is += will have no side-effect but may not be the...
1 votes
1 replies
Compile Error with using lamda function with max_element
I am trying to write some code to find the contour with the maximum size in a std::vector of contour. I have the following error error: conver...
asked 4 months ago
0 votes
1 replies
Importing a class from a c# dll into a c++ app
I need to import a dll made in c# from c++ All the examples I found import a single function from a dll, but as far as I know, you cannot export...
asked 4 months ago
1 votes
0 replies
Identify why CMake is re-configured every time a source file is changed
I have a big project and for some reason CMake configure is being run every time a source file is changed. Is there a simple way to identify why...
asked 4 months ago
-1 votes
0 replies
Using uninitialized memory [closed]
I am writing a program "Returning structure from function in C++". I understood everything but it gives me error in main function "using uninitia...
c++
asked 4 months ago
2 votes
3 replies
Define a macro with defined(X)
Here is a macro I want to use, if X_DEFINED is defined it will be evaluated to DEFAULT_X otherwise it will be evaluated to x #define GET_X(x) (d...
asked 4 months ago
0 votes
0 replies
Why do I get different results compiling on OSX terminal and Netbeans
I have inherited some C++ code and am trying to migrate it to the Netbeans 11 IDE for easier debugging. It compiles fine in the OSX terminal, but...
asked 4 months ago
-2 votes
0 replies
Recording opus audio stream to file with C++
I want to record an opus audio stream to a file using C++. I want to know what good libraries or the best to record audio under these conditions?...
asked 4 months ago
1 votes
0 replies
Facing target object using quaternion rotations
I would like to build on top of this question about rotating an object towards specific target with quaternions. My particular use case would be...
asked 4 months ago
1 votes
1 replies
Create a C++ template function that will return an std::array of a specific size
I am creating a function titled linspase with C++17 with the following input structure linspace(double upper, double lower, int size). The funct...
asked 4 months ago
0 votes
1 replies
How to recover privileges with GetTokenInformation () ? c++
I would like to recover all privileges from a username. For example privileges : "SE_ASSIGN_PRIMARY_TOKEN_PRIVILEGE", "SE_AUDIT_PRIVILEGE", "SE_D...
asked 4 months ago
0 votes
2 replies
getting segmentation fault when copying arrays using std::copy
i'm trying to carry out a pascal triangle, and i need to copy an array to an other, i'm currently using the copy function but getting the famous...
asked 4 months ago
0 votes
1 replies
x3 modify parser at runtime
I wonder if it is possible to change the parser at runtime given it does not change the compound attribute. Lets say I want to be able to modify...
asked 4 months ago
0 votes
2 replies
static library convert to a shared lib symbols are hidden?
I am trying to link v8's static library to a shared library using the following cmake command add_library(v8jni SHARED ${THIRDPARTY_LIB_PATH}/sh...
asked 4 months ago
-3 votes
1 replies
Invalid use of non-static data member error
I was solving a problem and got stuck into this error in a class. invalid use of non-static data member 'nr_piste' bool HardDisk[nr_pist...
c++
asked 4 months ago
1 votes
0 replies
How do I build boost 1.70.0 without enabling exceptions?
I have upgraded to Boost 1.70.0, and built the binaries using bootstrap and b2, and inserted this into our codebase, but unfortunately I'm gettin...
asked 4 months ago
2 votes
1 replies
Function is called twice from the same thread for the same object with the same call stack
Background I am debugging one open source project I am willing to join and learn C++. Then I tried extending some functionality needed for one o...
asked 4 months ago