Category "c++"

Cmake link libmapnik c++

I am unable to connect Mapnik via cmake to my application. I tried to do like this: cmake_minimum_required(VERSION 3.1) project(MapnikTest) set(MAPNIK_LIB "/u

Is there a way to navigate to a function's definition in another file in VSCode or CLion for CPP?

I am working in a project where I am on a specific file in a folder, the structure is like this: └─project_folder/ ├─ myFile.cpp

Ambiguous partial specializations and enable_if_t

This question is due to insane curiosity rather than an actual problem. Consider the following code: template<typename...> struct type_list {}; template&

How to Install compiler g++-4.8.5 in ubuntu 20.04

As the title said I can't install that specific version of g++ in my current ubuntu (20.04). I have been trying the usual things as: sudo apt install g++- (and

Bit shifting a half-float into a float

I have no choice but to read in 2 bytes that make up a half-float. I would like to work with this in the form of a 4 byte float. Ive done some research and the

What is an undefined reference/unresolved external symbol error and how do I fix it?

What are undefined reference/unresolved external symbol errors? What are common causes and how to fix/prevent them?

Configuring protobuf C++ to dynamically link against MSVC runtime library

I would like to configure protobuf to link MSVC runtime library dynamically. While this is supported by protobuf and seems trivial to do, I have not been able t

Transferring string arrays from VBA7 to C++

I'm currently working on a project where I want to be able to manipulate and graph data with relative ease in Excel. However, a lot of the data involved exceeds

How can I access class members after creating a new object for that class?

I know my question doesn't really explain my problem all that well, but I'll try my best here. I have a graph program. It should add new vertices and edges, and

can c++ using cin to read one digit like scanf

does c++ have similar measure like scanf("%1d) read only one digit in cin >> or only #include <cstdin> and use scanf I try to use setw() but it seem

struct in union nested - understanding behaviour of type punning

The following code uses a structure inside a union inside a structure inside a union. #include <cstdio> union { char abcd[4]; struct {

Can't build RDCOMClient using rtools40 and R 4.0

A while back, I created a fork of the RDCOMClient package to keep it working with R 3.6 (https://github.com/dkyleward/RDCOMClient). People are now running into

how can i use a function from MyForm1.h in MyForm.h

i have a funcion 'button1_click' in the header 'MyForm1.h'. I want to use this function in another header 'MyForm.h'. How can i do this? i already included 'MyF

can you help me to fix this code about bubble sort? [closed]

i am newbie, i don't know how to fix it? i don't know how to call function void bubblesort #include<iostream> using namespace std; vo

is there any way to reduce the Tags browse time in OPC UA client?... while connected OPC UA Server

I have reduce and checked with SamplingInterval and PublishingInterval..values There is no impact. can you suggest any way? Let me know.

Is there a function that can limit a program to run only under 2 minuets?

I am writing code that terminates by entering e or t , and I want everything to work under two minuets, but I cant get things to work once I include the delay o

Fold in Scade Suite is confusing me

So I know how the reduce, accumulator and how fold works in C++, Python, etc... But for some reason in Scade Suite it's kinda confusing to me. Scade Suite Examp

How to store every sequentially increasing sequence in a vector into new vectors

I have a vector with the following elements: std::vector<int> vectorOfInts{ 95, 137, 138, 139, 140, 156, 157, 158, 159 }; Problem: I'm trying to store eac

Use multiple images for batch inference cppflow C++

I'm trying to use cppflow library in windows 10 x64 machine in VS2019 C++. I want to inference my model for batch of images (vector <cv::Mat> ). I write a

Importing PDB (Protein Data Bank) files directly into Unreal Engine 4

I am building a project that will use Unreal Engine 4 to display protein models. Currently I cannot find a way to directly import PDB (Protein Data Bank) files