C++ is a general-purpose programming language.

learn more… | top users | synonyms

0
votes
0answers
10 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
31 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
26 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?
4
votes
1answer
2k views

I can't compile a C++ program with the g++ command

If I try compiling my C++ source file by the following command: g++ a.cpp it outputs: The program 'g++' can be found in the following packages: * g++ * pentium builder try: sudo apt-get intsall ...
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
35 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 ...
12
votes
4answers
8k views

Receiving error while trying to debug in QtProject

I installed the latest version of the QtProject so now I can debug C++ code. While trying to debug for the first time I got this error: ptrace: Operation not permitted. Could not attach to the ...
1
vote
1answer
3k views

How to compile a c++11 program using future in Ubuntu 12.04?

I'm trying to compile a c++ program in Ubuntu 12.04. I'm using g++ 4.7 (installed from a ppa). I'm using std::future, but I have an error. The code: $ cat main.cpp #include <iostream> ...
3
votes
1answer
14k views

Fatal error: gl/glut.h: no such file or directory [closed]

I'm attempting to write a program and I keep getting this error: Fatal error: gl/glut.h: no such file or directory I've read through other similar problems that people were having, and nothing has ...
2
votes
1answer
22 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
26 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. ...
1
vote
1answer
211 views

Why does my QQuick application crash on Ubuntu 14.04?

Basically I have (The Game class just wraps QGuiApplication): int Game::run() { QQuickView * mMainView = new QQuickView; mMainView->setResizeMode(QQuickView::SizeRootObjectToView); ...
3
votes
2answers
1k views

how to install c++ fastcgi development library?

I can't seem to find anything on this. I know apt-get install, but I don't know the name of the package for the standard c++ fastcgi development library. What is it?
0
votes
1answer
37 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
28 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

how do I get a c++ compiler for my Ubuntu 13.10 (32 bit) [duplicate]

I need a c++ compiler for Ubuntu 13.10(32 bit). Now I have only gcc, is that possible to compile C++ programs with it? if not ,please tell where do I get a C++ compiler.
-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 ...
0
votes
1answer
114 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 ...
0
votes
1answer
470 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 ...
1
vote
1answer
707 views

Right path to CPP SDK for using it in IntelliJ Idea's cpp-project

I can't find the right path to CPP SDK which is required by IntelliJ Idea, IDE that I want to use for developing a C++ project. Could someone show me the right place? (Click image to enlarge)
3
votes
1answer
47 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 ...
1
vote
2answers
47 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 ...
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 ...
2
votes
2answers
289 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
1answer
68 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 ...
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
33 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
2answers
143 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
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
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++?
0
votes
1answer
111 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 ...
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 ...
1
vote
1answer
38 views

meta/prefs.h: No such file or directory [closed]

I tried to a code derived from this code, but I got an error in QtCreator: error: meta/prefs.h: No such file or directory How can I solve the problem?
2
votes
1answer
6k views

Modification of stack size by ulimit -s

When I type ulimit -s in terminal it shows 8192. Does it mean that in my C code I could only have local variable of 8192 bytes? I am confused which stack size. Does ulimit -s change when we modify ...
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
34 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
49 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 ...
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 ...
5
votes
2answers
7k views

Once installed geos library (C++, and C), and then trying to install rgeos package (R), it reports geos-config missing!

Knowing that the package rgeos, from the R language, requieres a prior installation of geos libraries, I installed, both, libgeos and libgeos-c1 (3.2.2), using the synaptic installer in my Ubuntu ...
1
vote
1answer
159 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
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 ...
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++) | | ...
0
votes
1answer
269 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 ...
9
votes
3answers
9k views

How to install g++ 5.1 on Ubuntu desktop 15.04 64-bit?

I'd like to experiment with the new GCC 5.1 C++ compiler on Ubuntu. So, I downloaded and installed Linux Ubuntu desktop 15.04 64-bit in a virtual machine. Then, in the terminal, I entered the ...
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 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
1answer
83 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
0answers
179 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 ...