C++ is a general-purpose programming language.

learn more… | top users | synonyms

0
votes
1answer
13 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
22 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 ...
-4
votes
0answers
17 views

how creat application gui c++ in code bloks on ubuntu [on hold]

I have Ubuntu 14.04 , and i have Code Blocks . how creat application gui c++ in code bloks on Ubuntu ? give me the commands or video
0
votes
0answers
15 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 ...
0
votes
1answer
35 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
10 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
0answers
28 views

How should I start to learn c++? [closed]

I have a good knowledge of programming in C and I want to learn c++. Should i start again from data types and variables ? Where from should I start with c++ if I know C?
0
votes
1answer
37 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
23 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
27 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
38 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
0answers
29 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
19 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
116 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
105 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
48 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
32 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
69 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
305 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
15 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
486 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
118 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
148 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
59 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
30 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
34 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
61 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
35 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
50 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
49 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
162 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
44 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 ( ...
0
votes
0answers
26 views

Multiple Eclipse Mars environments

I do structure my projects in the following way: project_name ----- app ----- projectcpp1 (C++) | | | ---- projectcpp2 (C++) | | ...
1
vote
1answer
1k 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
3k 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
276 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
25 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
85 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
86 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
181 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 ...
3
votes
1answer
74 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 ...
2
votes
1answer
33 views

How to compile code without having the needed library 'installed' in your system?

In one of my projects in working with the SDL 2.0 libraries. My computer went kaput last night and at my uni my profile doesn't have sudo powers. Is there a way to compile and run my code without ...
0
votes
1answer
21 views

Not able launch Qt5 on ubuntu 14.04 multiple times.like we do in windows.right click and open another Qt5 application

recently I have installed Qt5 in my computer.I am not able to launch it multiple time.if I click on icon or if I right click and click open,it should give me separate another Qt5 application.but it ...
0
votes
0answers
82 views

C++ and regex using gcc 4.9.1

Good day, I'm trying to use regular expressions within my C++ program. The regular expression I use is simple and works as intended when I try it in an online debugger. The code: /* _token = ...
0
votes
0answers
41 views

process_vm_writev fails where process_vm_readv succeeded

I'm using process_vm_readv to read the contents of a function in a child process. This works fine. I then place breakpoints at certain places in the local copy of the function. Finally, I try to send ...
0
votes
1answer
101 views

Can't install libstdc++

I'm using Ubuntu 15.04, here what I've got: ... libstdc++6-4.9-dbg-arm64-cross : Conflicts: libstdc++6-4.8-dbg-arm64-cross but 4.8.4-1ubuntu15cross0.15 is to be installed ...
-1
votes
1answer
37 views

Error on running Grayscale using Opencl c++

I am new to OpenCL so I have been working on some simple OpenCL C++ programming. I have written a code on Gray scaling using OpenCL and OpenCV. It has been compiled properly, but on run it gives me ...
-1
votes
1answer
99 views

How to save variables for all pages in qml?

I am currently working on a game for Ubuntu touch. It is as good as finished, but one thing does not work: I have multiple pages using PageStack and want to have some variables which i can reach, ...
1
vote
3answers
500 views

Passing contents of file on the command line for c++ program [duplicate]

I have the following program (let's call it program.cc): int main() { int x, y, sum; std::cout << "A program which adds two integers\n"; std::cout << "Enter 1st integer: "; ...