Compiler support for upcoming C++0x

Is there a compiler that has good support for the new C++0x? I use GCC but unfortunately the current version 4.4 has a poor support for the new features.

Casting between void * and a pointer to member function

I'm currently using GCC 4.4, and I'm having quite the headache casting between void* and a pointer to member function. I'm trying to write an easy-to-use library for binding C++ objects to a Lua...

What is the "-->" operator in C/C++?

After reading Hidden Features and Dark Corners of C++/STL on comp.lang.c++.moderated, I was completely surprised that the following snippet compiled and worked in both Visual Studio 2008 and G++...

Result of 'sizeof' on array of structs in C?

In C, I have an array of structs defined like: struct D { char *a; char *b; char *c; }; static struct D a[] = { { "1a", "1b", "1c" }, { ...

Defining static const integer members in class definition

My understanding is that C++ allows static const members to be defined inside a class so long as it's an integer type. Why, then, does the following code give me a linker error? #include...

Software Pipelining Example with GCC

I am looking for a real (source and generated code) example of software pipelining (http://en.wikipedia.org/wiki/Software_pipelining) produced by GCC. I tried to use -fmodulo-sched option when...

What is the first (int (*)(...))0 vtable entry in the output of g++ -fdump-class-hierarchy?

For this code: class B1{ public: virtual void f1() {} }; class D : public B1 { public: void f1() {} }; int main () { B1 *b1 = new B1(); D *d = new D(); return 0; } After...

ST_DWithin takes parameter as degree , not meters , why?

The ST_DWithin document says , the third parameter(distance) is in meters. But when I execute some query , it seems it takes the 3rd parameter as 'degree' ? Here is my simplified table structure...

getting the following warning : The ABI of passing struct with a flexible array member has changed in GCC 4.4

When I try and run my program I get this warning and some weird bugs. rmi_pdu in the following structure contains a variable sized array which I want to access. struct rmi_message_s { /* Queue...

what is arm-linux-gcc and how to install this in ubuntu

In compiling qt I found that there is a qws target called arm-linux-gcc. I looked around a bit but unable to figure out how and where to find this. I tried installing and apt-cache gave me...

How to install previous version (4.4.7) of gcc/g++ via apt-get in ubuntu 14.04?

Due to legacy issues I have to install the gcc/g++ version 4.4.7 in my current Ubuntu-gnome 14.04 32 bit virtual machine. The default update via apt-get install is the 4.8.2 which is a "no go"...

zsh: too many levels of symbolic links: gcc

lrwxr-xr-x 1 root wheel 16 Apr 6 13:10 g++ -> /usr/bin/g++-4.5 -rwxr-xr-x 1 root wheel 14272 Feb 14 2014 gatherheaderdoc lrwxr-xr-x 1 root wheel 16 Apr 6 13:11 gcc...

Building error using cmake: cannot find -lpthreads

I have c++ project that was smoothly running on a given machine, and now I am trying to compile it on another one with the same operating system (Xubuntu 14.04). I've installed all the...

apt-get can't install (dependency conflicts?)

I'm having a problem with apt-get. I'm trying to install gsoap, typing apt-get install gsoap but I'm getting Some packages could not be installed. This may mean that you have requested an...

yocto kernel ti network error

i'm getting a network interface error when building for the 4.4 ti staging kernel. All layers are in the morty branch. The image is a core-image-minimal. Configuring network interfaces... ifup:...

Overlay a video on another video at specific time with FFmpeg

I am trying to overlay a video with another video. I followed the original command OP posted here. And it works, but it overlays the video from time 0: ffmpeg -i 720480.mp4 -i sdbug.mov...

python install zbar error: Setup script exited with error: command 'gcc' failed with exit status 1

enviornment: pyenv versions system 2.7.13 * 3.4.3 (set by /home/foo/.pyenv/version) 3.4.3/envs/venv343 venv343 easy_install zbar while encounter the following errors: Searching for...

YASM: vmovaps instruction causing segmentation fault

Problem: movaps is giving me a segmentation fault. Context: The x86-64 instruction vmovaps is designed to be used with the AVX registers on a Core i series processor (which I am running this...

How can I fix gcc error when install multidict in alpine docker container?

Q: In my docker container, i use apline linux system which has been pre install gcc apk info: bash-4.4# apk info .... gcc But when I install multidict, failed by gcc error bash-4.4# pip install...

Yocto poky build fails on function do_rootfs

I've been following the steps on https://www.linux4sam.org/bin/view/Linux4SAM/PokyBuild to build a core-image-minimal and a microchip-headless-image for SAMA5D27 eval kit using Yocto. I am stuck...

Combining three or more videos with ffmpeg and the xfade filter

As of 2020 ffmpeg has the xfade filter which can combine videos with a transition. Combining two videos is easy enough: ffmpeg -i vid1.mp4 -i vid2.mp4 \ -filter_complex...

Why does `conda list cudnn` have no output after `conda install pytorch torchvision cudatoolkit=10.2 -c pytorch` installation

*Please feel free to vote "Reopen" at the bottom of this question. The reason is that I have marked this as a duplicate although the answers there are not clear enough for this question.* As soon...

Docker openCV installation Issues

I'm currently trying to run an application using Docker but get the following error message when I start the application: error while loading shared libraries: libopencv_highgui.so.4.4: cannot...

Degrade or install lower packages in solaris11

I was trying to install gcc-48 in solaris 11. bash-4.4$ sudo pkg search gcc-48 INDEX ACTION VALUE PACKAGE pkg.fmri set solaris/developer/gcc-48...

FFMPEG keeping quality when reducing FPS and streaming over RTSP with rtsp-simple-server

I'm using the rtsp-simple-server (https://github.com/aler9/rtsp-simple-server) and feed the RTSP Server with a FFMPEG stream. I use a docker compose file to start the stream: version:...

ffmpeg keep framerate as source

I am trying to use ffmpeg to overlay a video on a backgroud image. But the output video has different framerate(25) and length compared to the source video, I guess this is causing the tiny...

.avi file to .webm file with alpha channel

I have no idea how to use FFmpeg, but my .avi file is too large for a 2-second video? Any idea how I can convert it to WebM? While retaining its alpha channel? I tried this: ffmpeg -i "1.avi"...

Why do I get "method DESCRIBE failed: 401 Unauthorized "

Let me explain my problem, I am trying to access different channels in a DVR system. I have successfully gotten access to a single camera (channel 1) by using opencv as such: public_link =...

Where are there working exdamples for QSV enabled ffmpeg filters?

I'm re-posting this question in a modified form because I'm told that stack overflow doesn't allow anyone to ask for the location of documentation. So now I'm not asking for documentation, I just...

How can I use Octave from R 4.1?

I've installed Octave in Linux machine (Ubuntu 20.04) using this code: sudo apt-add-repository -y ppa:octave/stable; sudo apt install -y software-properties-common; sudo apt-get update; sudo...

Relevant tags