C++ is a general-purpose programming language.

learn more… | top users | synonyms

0
votes
1answer
78 views

can't compile .cpp file with clang even after installing clang3.8

I installed clang3.8 with bunch of other packages that I usually need, after a fresh installation of Ubuntu 15.10 using following command: $ sudo apt-get install clang-3.8 clang-3.8-doc libclang-...
1
vote
0answers
53 views

How to control system volume with C++/QML?

Helo, I want to develop an app. It should control the system volume by day time. I have two questions: How to change system volume in C++/QML? How can I run my app as a service that will ...
0
votes
1answer
91 views

Segmentation Fault (Core Dump) Happen and NOT Happen on 2 Different Distro of Linux [closed]

I'm a newbie to Linux OS, I installed Ubuntu 14.04 LTS (64 bit) to do a C++ project. Unluckily, when my teacher gave me a C++ code, I got a Segmentation Fault (core dump) when I ran it on my Ubuntu, ...
0
votes
0answers
99 views

resolve: No such host is known?

I am facing a strange issue while trying to resolve endpoints using boost resolver in c++. Case: I am trying to connect to a website http://localhostIpAddress/test/ using boost. where local address ...
0
votes
2answers
58 views

Change default editor for .cpp files

When I double click .cpp files I expect gedit to open it, instead RStudio opens it. How to set gedit as the default editor for .cpp files?
0
votes
1answer
126 views

How do I link the OpenAL library to eclipse in Ubuntu?

I just downloaded the OpenAL library using the command sudo apt-get install libopenal1 libopenal-dev, now I can't find where the library is on my system and how should it be linked with Eclipse. I am ...
0
votes
1answer
568 views

How do I install and setup the environment for using PortAudio?

I am quite new to Ubuntu and I find it hard to install programs/libraries. How do I install and build PortAudio in Ubuntu using the terminal?
0
votes
0answers
64 views

Error compiling Q-Rap on Ubuntu 14.04

I'm trying to compile Q-Rap (http://www.qrap.org.za/) on Linux Ubuntu and I'm keep getting a flood of errors like this: $ make qrapplugin [ 1%] Building CXX object CMakeFiles/qrapplugin.dir/qrap.o /...
4
votes
1answer
336 views

Undefined references compiling clang tutorial on 14.04.2

I tried to compile the code from clang's libtooling tutorial (section "Put it together"). Compiling works: g++ `llvm-config-3.5 --cxxflags` -fno-rtti -c test.cpp -o test.o I got undefined ...
1
vote
1answer
93 views

Can't execute compiled program: Exec format error [closed]

First, this has nothing to do with 64bit-32bit mismatch, file extensions, nor permissions. I compiled a program (C++ 11) in a non-Ubuntu distro, and I uploaded it onto an Ubuntu Server (64 bit) with ...
0
votes
1answer
155 views

How to upgrade g++ to the latest version

Newbie here. I just got an error running from the terminal a C++ program I wrote: error: ‘stoi’ is not a member of ‘std’. They told me the compiler is too old. I'm using Ubuntu 14.04. My g++ version ...
0
votes
1answer
106 views

Cannot find ld when non-root user

I have an autocompile program available on a website that I am running. The program uses clang++-3.5 to compile C++. When I run the auto-compile python script, as a root user, compilation is ...
0
votes
0answers
281 views

How to upgrade libstdc++

I have the same question as How do I get my DEB to install libstdc++.so.6.0.20?. (more or less). The developer of the binary I downloaded used a later version libstdc++ than is present on my 14.04LTS....
0
votes
1answer
191 views

How to use notify-send with C++?

I'm a C++ beginner coder. I'm trying to understand how to send notifications using libnotify-bin library. I've read some guys saying don't to use system calls. Any clue?
0
votes
0answers
16 views

Install older GNU toolchain

I need to compile my project using older version of GLIBC (GLIBC 2.15). For this reason I decided to install separate machine with older toolkit. Usually I do sudo apt-get -y install g++ But how I ...
0
votes
1answer
460 views

c++ boost library problem: cannot find -lboost_system ld returned 1 exit status

I have a problem with boost. After I installed boost with following command sudo apt-get install python-dev sudo apt-get install libboost-python1.54 sudo apt-get install libboost-system1.54 ...
2
votes
1answer
162 views

Installing Boost 1.48 on Ubuntu 12.04

Ubuntu 12.04 has two libboost-dev packages. The default is 1.46, but there is also a 1.48. I have updated libboost-all-dev to 1.48 without any errors. I was expecting that all previous links to ...
0
votes
1answer
251 views

How to link, and compile, a C++ code using GNU Octave functions?

I am new to C++, and I have troubles to get going. I want to re-implement a code, written in GNU Octave, using C++. I would, however, still want to use some GNU Octave functionality in that C++ code. ...
0
votes
1answer
76 views

Unable to compile in geany

Whenever I try to compile any file whether c , c++ or python in geany I get this error.
0
votes
1answer
86 views

How to get the name of connected ios phone in Linux using command

How to get the name of connected ios device name in Linux, or c++ programming. basically, I use the Qt in Linux. and I want to get the name of the connected device name. after a searching in google we ...
0
votes
0answers
65 views

Using Anjuta IDE for C++. Why won't it recognize the header file. Error main.cc Header.h: No such file

Error on simple class example. Why does it not find the header file? Also, if anyone has a breakdown of what the folders mean, I'd appreciate it. Anjuta No header file error
0
votes
1answer
190 views

Why do I get a “Permission denied” error every time I try to execute a C++ program?

Every time I try to execute a program, no matter what program, I get this message: bash: ./filename.cpp: Permission denied When I compile I have no problems, it works fine. But when I want to ...
-2
votes
1answer
168 views

Graphic driver error

When I run my Qt app I get the following error: libva info: VA-API version 0.35.0 libva info: va_getDriverName() returns 0 libva info: Trying to open /usr/lib/i386-linux-gnu/dri/vmwgfx_drv_video.so ...
3
votes
1answer
126 views

Add image files in Ubuntu QML app with C++ plugins (qrc)

I'm writing an Ubuntu QML (phone) App with C++ plugins using ubuntu-sdk. My app includes a png image and in order to include the image in the binary (so it shows on the phone) I have created a qrc ...
0
votes
1answer
418 views

14.04.01 32-bit: Missing g++ 64-bit include files when cross-compiling

So, I've got 32-bit Xubuntu 14.04.1 installed. We have some interface code where we intend to release SOs for the various platforms we support, and Windows DLLs. (Yes I know, binary release bad, but ...
0
votes
1answer
201 views

How to display a QWidget in Ubuntu Touch using QML and C++?

How can I display text from QTextEdit (a QWidget) using a QML frontend and a C++ backend? I am currently developing a Ubuntu Phone app using the qmake project. I need advanced text editing ...
2
votes
2answers
1k views

Can't access cairo.h

I've installed cairo-1.4.14 using make install, but after trying to compile my code: fatal error: cairo.h: No such file or directory #include <cairo.h> ^ I compile using ...
0
votes
0answers
12 views

Can't install library in Ubuntu 14.04 [duplicate]

I tried to install cairo-1.14.4 library. After make install: /usr/bin/install: cannot create regular file '/usr/local/lib/libcairo.so.2.11400.4': Permission denied
0
votes
1answer
23 views

.cpp and .h files of new classes are not showing in Ubuntu SDK tree

I've added new classes to my project via Ctrl-N >> C++ >> C++ Class. However, after the files are added to my models/my-project folder, it does not show up on the tree in Ubuntu SDK. Why is this? ...
0
votes
1answer
1k views

Dell Inspiron 15 5559 hangs at shutdown, wierd start ups

I just bought a new Dell machine. It's awesome! It has a 6th Gen Intel i5, Radeon M335 (4gb ddr3), 8gb of ram< win 10. Nothing special, but still quite good. Anyways I wanted to install Ubuntu on ...
0
votes
1answer
621 views

C++ header files for HDF5 are missing

I am trying to compile a C++ program using g++ which uses the H5Cpp.h header file. g++ is producing a fatal error saying: fatal error: H5Cpp.h: No such file or directory I have already installed ...
2
votes
2answers
319 views

/usr/bin/ld: cannot find -lX11

https://github.com/laazyboy13/linux-csgo-external/issues/6 How do I get it to find libx11-dev? william@william-elementarylinux:~/csgohack$ make Linking CXX executable build/csgo_external /usr/bin/ld: ...
0
votes
1answer
90 views

How to write a C++ backend for Ubuntu Touch that can access internet?

Is there anyway to write a C++ backend for an Ubuntu Touch application that can access the internet, and download files? Or do I have to do that through QML, and pass it to objects written in C++?
1
vote
1answer
75 views

QML dynamic scoping not working (ReferenceError)

I am trying to reproduce the example here where the TitlePage.qml component creates two TitleText instances even though the TitleText type is in a separate file (under Section: Component Instance ...
0
votes
1answer
54 views

program in not running completely

I have written a program to count no of cars from the captured video. I have installed opencv and cvblob, raspbian wheezy OS on raspberry pi 2. The problem I am facing is "During run time the program ...
2
votes
1answer
82 views

List Installed Program Using C/C++ [closed]

I need to complete a short audit program written in C / C ++, which list the programs / apps installed on machines running Ubuntu, at first I could accomplish the task using "system (" dpkg -l> / tmp /...
0
votes
1answer
65 views

Can't use g++ compiler

I tried to do this: $ g++ The program 'g++' is currently not installed. You can install it by typing: sudo apt-get install g++ $ sudo apt-get install g++ [sudo] password for user: Reading package ...
0
votes
0answers
72 views

After update my system from 15.04 to 15.10, I can't use c++ standard library with vector include method. Why?

When I updated to 15.10, my eclipse CDT IDE can't use the some of the C++ library anymore. But it works OK before updated which the version is 15.04 ubuntu kylin. When I use the words: include or ...
1
vote
2answers
80 views

IDE that can use remote server (which can only be connected to by VPN) to save and compile C/C++ code

Here is the predicament that I am in now. For one of my classes, we need to make sure our code works on the school's Red Hat server. I had problems with dual booting Ubuntu and Windows 10 on my ...
1
vote
1answer
590 views

Exec format error of gcc-compiled Hello World c++

I know there are many similar questions with this error message here. But I cannot find any solution yet. On AWS ubuntu server, I wrote c++ Hello, World program #include <iostream> using ...
1
vote
1answer
160 views

Multiple versions of gcc / g++ affects

I have a fairly simple question, and yet couldn't find an answer anywhere I looked. In my workplace there is a CI server with ubuntu 12.04 installed, that server uses the default c/c++ binaries ( 4.6....
0
votes
0answers
38 views

Multiple Eclipse Mars environments

I do structure my projects in the following way: project_name ----- app ----- projectcpp1 (C++) | | | ---- projectcpp2 (C++) | | ...
1
vote
1answer
2k views

Install Eclipse Mars PHP and C++ on Ubuntu 15.10

I´m building a new development machine and I need to setup Eclipse for C++ and PHP projects. I´ve installed Ubuntu 15.10 and I started installing Eclipse Mars (4.5). I choosed to use the new Eclipse ...
3
votes
1answer
6k views

Platform not supported for Tensorflow on Ubuntu 14.04.2

Tensorflow is a numerical computation software http://tensorflow.org/get_started/os_setup.md#binary_installation The installation instruction says to simply pip install on Ubuntu but I'm getting the ...
0
votes
1answer
1k views

C++ 'Hello World' with Codelite-iostream not found

I appreciate any help with this, as I am relatively new to both Linux and coding in general. I am comfortable using bash commands and have been playing with Linux for a little over a year, but please ...
0
votes
0answers
57 views

how to Create Threads using Pthread_Create recursively?

I would like to use pthread_create to create 8 threads recursively without the use of any loops like for or while loops. The created threads should execute a simple routine to print something or what ...
0
votes
1answer
264 views

how I can download and install C++ in Ubuntu? [duplicate]

I am a mechanical engineer and I have Ubuntu 14.04.3 LTS on my Laptop. I need to install C++ program. How I can do that ? Help me please
0
votes
1answer
395 views

How to compile c++ to Dll file in Ubuntu

Now I can compile successfully by using make file provided, now I want to compile the project to dll file, how should I modify the make file? The make file is: default: all # -----------------------...
0
votes
0answers
391 views

C++ - How to import GTK+ or Glade libraries to CLion? Ubuntu 15.04

So, I've trying to create a simple GUI code in CLion, but it looks harder than I thought. What I have been doing so far: #include <gtkmm-3.0/gtkmm> CLion can't predict any of the objects/...
3
votes
1answer
200 views

Making a bash script to build and run a C++ program

I'm trying to make a bash script to build and run a C++ program at once with one command, normally right now I have to do g++ file.cc -o file ./file < input.in I want to be able to do, say brun ...