Category "c++"

Spurious wakeup with atomics and condition_variables

std::atomic<T> and std::condition_variable both have member wait and notify_one functions. In some applications, programmers may have a choice between usi

how to make a code::blocks project for caffe

I like to have a code::blocks project out of the sources of the caffe framework. I checked out the whole repository from caffe and made the makefile.config and

not recognized as a supported file format ECW gdal api

I'm trying to use ECW files in my application. I've built GDAL Library whit this command: ./configure --with-ecw:/usr/local/hexagon after completion of build p

Arduino C++ - call registers by arrays

I am using a Teensy with Teensyduino to control several stepper motors. This requires writing to timer value registers, and there are 4 needed for each stepper

Generating a call graph with clang's -dot-callgraph with multiple cpp files, and a sed command

I tried Doxygen, but it was a bit slow, and it generated a lot of irrelevant individual dot files, so I'm pursuing the clang way to generate a call graph. This

Implementing a client connection function that waits for the server in capnproto

I'm trying to implement in capnproto something like boost's connect function which blocks and retries until the server is up, or basic_socket::async_connect tha

ffmpeg H264 - How to add user unregistered SEI Message while encoding stream

I'm working on an application where I need to insert some user unregistered SEI data in every frame before encoding it. I can't seem to find any API to add the

Seam Carving an image using Dijkstra algorithm in C++

I am trying to implement Seam carving using Dijkstra's algorithm. So far, I have converted the image to grayscale and using a 2D array, I've found out the ene

Count how many iterations of deletion until array is ordered

I'm trying to write a program whose input is an array of integers, and its size. This code has to delete each element which is smaller than the element to the l

LateBinding with dynamic memory

I have Base and Derive class at the below which related to polymorphism (Latebinding) : class Base { .... }; class Derive:public Base { .... }; int main() {

problems with computing normal for organized point cloud

Now I want using PCA method to compute normal for the organized point cloud transformed from the depth image.Here is what I do: pcl::NormalEstimation<pcl::P

No instance of overloaded function matches argument list.

I'm working on a project for class, but keep getting the error: no instance of overloaded function matches argument list. It is referencing my String classes. W

problems with computing normal for organized point cloud

Now I want using PCA method to compute normal for the organized point cloud transformed from the depth image.Here is what I do: pcl::NormalEstimation<pcl::P

Serving HTML as C array from Arduino code - String size limit problem

I've been working on a HTML / websocket server on a Wiznet W5100S-EVB-Pico, programmed in the Arduino IDE. It all worked fine up until now but I'm running into,

Will C++17 allow forward declaration of nested classes?

Not sure where to ask (feel free to close this if it is an inappropriate question) but I have not found anything on this specifically in C++17 proposals, neithe

getrawinputdata within a simple main()

I am trying to read values from the joystick using simple C++ techniques and Windows. My aim is to write a program that sends a keyboard command whenever the jo

lld runs LTO even if -fno-lto is passed

I have a CMake project with several subprojects that create static libraries built with -flto=thin. The project has a lot of tests that are linked against the a

How to install gstreamer 1.0 badplugin for opencv?

On a Ubuntu 18.04 machine I am trying to use opencv 4.1.2 facedetect in a gstreamer 1.14.5 pipeline but unfortunately the plugin is not installed. I downloaded

How to shrink the size of a WTL application?

WTL applications are quite small already. However, using VS 2005 a statically linked application with WTL 9.10 weighs in at 136 kB (139,264 Bytes) for the Win32

malloc(): memory corruption (fast)

I just started to learn data structure and getting an error when executing malloc(): memory corruption (fast) what can be the issue and how to resolve it? I h