Initializing qt resources embedded in static library

I have next situation: I need to create widget in standalone static library, which then will be linked with final application (visual c++ 9.0, qt 4.5). This static widget library contains some...

Qt library destructor Question

Im new to the Qt library and i was going through the demonstrations. I came across this class without a destructor.... this is the cpp...

5 years later, is there something better than the "Fastest Possible C++ Delegates"?

I know that the topic of "C++ delegates" has been done to death, and both http://www.codeproject.com and http://stackoverflow.com deeply cover the question. Generally, it seems that Don Clugston's...

How to compile the code using #include <thread>

I am trying to compile some C++ code that uses threads: #include <iostream> #include <thread> void hello() { std::cout<<"Hello Concurrent World\n"; } int _main(int argc, _TCHAR*...

How to install RHadoop on Ubuntu Natty 11.04 machine?

I need to install RHadoop on my ubuntu natty 11.04 machine. I tried doing these commands "apt-get install r-base" but i am getting unmet dependencies [email protected]:/home/rhadoop/dependency#...

error of 'GLUT_3_2_CORE_PROFILE'

I tried to run some opengl program in Xcode, but it always failed by showing an error:use of undeclared identifier 'GLUT_3_2_CORE_PROFILE'. I tried the .cpp documents on terminal, the error seems...

C++ Error message redefinition of functions

I am using two stacks to implement a queue class. My header file looks like: #ifndef _MyQueue_h #define _MyQueue_h using namespace std; template <typename T> class MyQueue { public: ...

What are productive ways to debug Rcpp compiled code loaded in R (on OS X Mavericks)?

What is the most productive and quickest way to debug shared objects that are loaded into R, in particular on OS X Mavericks? I'm primarily interested in debugging compiled Rcpp code. I have read...

Access violation inserting element into global map

I'm returning to a C++ application that used to work correctly after about 4 years. My first task was to update it from Windows XP/.NET Framework 3.5/Win32/VS2008 to Windows 7/.NET Framework...

Run program "Hello World" in CGAL

I have an error about installation in CGAL in Visual 2012 32bit. I install Boost and Cmake also configuring and generating a CGAL project successfully. I rebuild ALL_BUILD, CGAL, Demo, Example.....

Setting the library path for Boosts tests with CMake in Windows

I've started a little project on GitHub for an OpenSceneGraph plugin. Here, I plan on learning how to setup projects with CMake, unit testing with Boost.Test and continuous integration, with...

sonarqube 4.5 has misidentified a cpp module as c - how can I fix it

I created a multi-module project with a single sonar-project.properties. Most of the project is in c but one module is c++. I left the sonar.language property blank and ran sonar-runner with...

c++ code doesn't catch exception on FreeBSD

I have a program running on many different linux distros. When I compile it on FreeBSD 10.1 for some reason the catch clauses stop working and exceptions that should get caught crash my program....

Can't run VS 2015 Community without /resetsettings; Getting CANTLOADLIBRARY on opening new projects, and crashing on new .cpp files

I have Windows 10, fully updated. I downloaded and installed Visual Studio Community 2015 last week for the first time, (previously programmed in Code:blocks, still installed) and selected custom...

VS2015 debug ASP.NET step over jumps to site.master

I recently started working on a C# ASP.NET solution built in VS2012 Pro in VS2015 Community edition. When I am debugging the app in VS2012, all is fine. However, when I have a breakpoint set in...

SVG Icons with <use> :hover not working in Chrome with external loading

To be very, very clear: If you copy-paste this code, it will work in a Chrome browser. The issue lies when you put a map.svg containing the nested <symbol>'s and access the resource with external...

linux centos6.6 "Errno 14 PYCURL ERROR 18 - "transfer closed with 5691386 bytes remaining to read"

when i updated centos6.6 system's kernel , Centos6.6 raised few “pycurl exceptions” . but i could not found out problem where it exists, ,many thanks for anyone who can get me out from...

lower_bound and upper_bound for after and before

I would like to search in an event database and check what is the immediate event before time t and what is the immediate event after time t. If the event happens exactly at time t, I would like...

Dist Upgrade to Buster failing

I currently have a Dockerfile which has started to failing (with no changes in the Dockerfile) The Dockerfile has the following contents: FROM php:apache-stretch WORKDIR /tmp # SOFTWARE REQS RUN...

Iterating through custom structure unifrom array in OpenGL 4.5

I am attempting to iterate through a uniform array of customly defined structures in OpenGL 4.5 but my application crashes with an invalid operation enumerator. My fragment shader looks...

Android NDK Cmake linker *.so No such file or directory

I have a very simple project, but there was a mistake in compiling that I couldn't understand.linker command failed with exit code 1 System environment Windows 10 x64 Java 8 Gradle 4.5 ...

C++ using CPPRestSDK ("Casablanca") to authenticate to azure IoT Hub

EDIT: I managed to get a c# version working (below) Original Question: I'm trying to connect to Azure's IoT Hub through the cpprestsdk and POST a json-structured obj to it. However, i cant find...

MSBuild web deploy issue when migrating to new server

Background: New to MSBuild and MSDeploy Trying to build out a new Jenkins build server based on existing live one There are known differences between server that I'm trying to work through I'm...

Folium HeatMapWithTime script working on Windows, but not on Linux

This script works as expected on Windows, but when I run the exact same .py on my Linux laptop (kde neon), it produces just the map html file (as in no heatmap, no controls, no plugins). It...

Imitate Visual C++ with MinGW or other C++ compilers (for Python packages based on Visual C++)?

Is there a way to use MinGW as a substitute of MS Visual C++? A lot of Python packages need VS C++ to be installed: 4.5 GB of disk space! MinGW takes only 450 MB and reaches the same aim to...

Mono runtime crash when embedding in C++ application on Linux

Background / Description of problem I'm trying to run c# scripts as part of my c++ application which I'm compiling in Debian-9 Linux. However, my application crashes with an error from coming...

(Python: discord.py) ERROR: Could not build wheels for multidict, yarl which use PEP 517 and cannot be installed directly

trying to download discord.py using pip install, gave me the error message in the title. I installed using cmd and the commands py -m pip install -U discord, the cmd was also run in admin. tried...

python 3.9 discord.py asyncio.async error

This question deals with discord.py errors caused by asyncio, but any advice on creating discord bots would be very welcome. I am more than willing to read documentation to fully understand...

Python: Discord.py ERROR: Could not build wheels for multidict, yarl which use PEP 517 and cannot be installed directly

So I recently have tried to install discord.py through cmd but its giving me an error no matter if I use pip3 py pip. It says i need to install visual studio 14 but i have visual studio 16...

dask-yarn job fails with dumps_msgpack ImportError while reading parquet

I am trying to do a simple read and count of a small parquet file (10K records) using dask-yarn on an AWS EMR cluster with one master and one worker node, both are m5.xlarge instances. I am trying...