C++ is a general-purpose programming language.

learn more… | top users | synonyms

0
votes
0answers
7 views

Running AES in HElib

I am using Ubuntu 14.04. I am trying to run AES in HElib but I have a Segmentation fault (core dumped) I tried to find the error by strace command and I received the error: write(1, "computing ...
3
votes
1answer
5k views

CXXABI_1.3.8 not found

So, I'm trying to run heroes of newerth and get the error ./hon-x86_64: /home/c0ding/HoN/libs-x86_64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by ...
0
votes
0answers
11 views

Why does lldb failed to step into function of shared library [migrated]

I'm having trouble with lldb3.8 on ubuntu16.04. lldb failed to step in functions of my shared library while gdb can. The code is very simple: main.cpp: int main(int argc, char *argv[]) { MyLib ...
0
votes
1answer
28 views

Installing boost into /usr/include

I am trying to install boost into the folder /usr/include. I tried sudo apt-get install libboost-dev, but the highest version apt-get provides is 1.58 instead of the newest 1.61. Then I downloaded ...
-1
votes
1answer
28 views

How do I get right output in C++? [on hold]

While output to .dat file , there are 16 columns, but according to my C++ programme , the file should contains 100 columns, but it doesnt happen . What is the programme error ?
0
votes
1answer
14 views

Does Cppcheck has a gui for ubuntu 14.04?

I want to use Cppcheck for my C++ based program. If yes, how do I install it? I can't seem to find any instruction for that anywhere. Thanks
1
vote
1answer
13 views

thrift-0.9.3 package C++ build issues. Which boost packages to use?

I am seeing compilation issues in thrift-0.9.3 package( I did downloaded from https://thrift.apache.org/download). Some linking errors are observed in lib/cpp/test. Can any one suggest me what version ...
0
votes
0answers
23 views

Why does it show “'string' was not declared in this scope” in line 6?

include include include int main(){ std::map example; example["keyOne"]=1; example["keyTwo"]=2; std::cout << example [ "keyOne" ] << '\t '<< example [ "keyTwo" ...
2
votes
2answers
477 views

Bad symbols on my eclipse C++ installation

http://stackoverflow.com/questions/9131763/eclipse-cdt-c11-c0x-support I come from that website. I have a C++ project that compiles with g++-4.8 without problems. I just wanted to use std::int8_t ...
0
votes
1answer
25 views

system(“pause”) for Linux g++ C++

In windows when compiling, system("pause") works, what is the equivalent in linux?
1
vote
0answers
18 views

error: SCmathlib: No such file or directory

I have written code for conjugate gradient in PuTTy C++. When I try to compile it, it throws the error below. error: SCmathlib.h: No such file or directory cg13.cc:11: error: '::main' must return ...
2
votes
1answer
89 views

How can I write a dynamically updated panel app / indicator?

I am trying to write some panel apps for ubuntu Mate. I know C/C++, and SDL reasonably well. I have seen the Mate-University panel apps github page, but i cannot get it to work properly / Im having ...
0
votes
0answers
16 views

Running program detached from Terminal crashes with buffer overflow [closed]

I want to start a C++ program after pressing a Hardware Button on a headless device (Jetson TX1), however all solutions I found so far (nohup, appending &, or directly starting it with the acpi ...
0
votes
1answer
131 views

Clion “Bundled Cmake does not work in this enviroment” ubuntu 14.04

I used Eclipse CDT for college lectures, but today I found the solution for C/C++ by JetBrains. But I can't compile because I don't know how to set the compiler.
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
32 views

How to run multiple or single C++ .cpp files on terminal? [closed]

Everything is running on codeblocks and I don't know how to do it on terminal.
0
votes
0answers
16 views

Ubuntu: Cannot open shared object while executing c++ program

I've tried to install library from sources. After calling "sudo make install" I've got following information: If you ever happen to want to link against installed libraries in a given directory, ...
0
votes
0answers
14 views

which include needed in Octave

I've started working with the octave library in C++. I need to uses the functions: polyfit and csaps. Which in includes do I need to run these functions? Koby
0
votes
0answers
18 views

Setting up a window manager development environment and a basic guide

I am using Ubuntu and I am not able to understand from where can I get the Xcb libraries. While I was checking some guide (whose name I forgot) I got the command : cc file_name.c -lxcb It was written ...
0
votes
1answer
29 views

Where are the headers of libavcodec and libavformat located?

I executed the following commands in the terminal: sudo apt-get install libavcodev-dev sudo apt-get install libavformat-dev I tried to find the headers (various #include<libavcodec/*.h>) in ...
3
votes
0answers
53 views

How can I run an c/c++ program that use GNU Scientific Library (GSL)?

I'm trying to run 2 simple examples in c/c++ using the GNU Scientific Library. That are the codes: 1st: An Example Program #include <stdio.h> #include <gsl/gsl_sf_bessel.h> int main ...
0
votes
1answer
135 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
4k 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> ...
1
vote
0answers
105 views

'__FDELT' and '__FDMASK' not declared in this scope (posix_types.h not included)

I'm running Ubuntu 12.04 LTS, 64bit version. I'm getting the following error when compiling a C++ program: ../elements/userlevel/socket.cc:477: error: '__FDELT' was not declared in this scope ...
0
votes
0answers
208 views

Ubuntu 16.04 LTS and Oracle Instant Client - C++ linking error

First of all: i hope that my english is understendable ;) I'm not sure if the problem is more suitable for StackOverflow or AskUbuntu, but I will ask. I have two virtual machines. On one Ubuntu 14.04 ...
-1
votes
0answers
22 views

Is Turbo C++ 4.5 available for Ubuntu? [duplicate]

I want to know if Turbo C++ 4.5 can be installed on Ubuntu ???
0
votes
0answers
18 views

Ubuntu Xenial: perf doesn't demangle C++ symbols

Linux perf-tools don't seem to work as expected on Ubuntu (16.04). C++ symbols don't get unmangled, I only see garbled stuff like "_afki34334ldfjkdasf_dfkj". Note that I have compiled the program and ...
0
votes
0answers
25 views

14.04 X11/xlib Bad Access

I asked this question on StackOverflow (link) but then thought this might be the better forum to get my question addressed. Basically, I wrote some code to listen for certain keypresses (like 'c') ...
2
votes
0answers
289 views

GLIBCXX_3.4.21 not defined in file libstdc++.so.6 with link time reference

When trying to execute any c++ programs, I get this error. The full error message is: ./main: relocation error: ./main: symbol _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1Ev, version ...
0
votes
1answer
16 views

Using arc4random on Ubuntu 14.04 trusty

I am currently working with a C++ program where I wish to use arc4random function. Every time I compile, I receive a not declared in scope message for arc4random. I understand that this is an error in ...
0
votes
0answers
29 views

problem with installing mysql-server5.5 with ubuntu12.04, socket file not found

I am trying to create a database in ubuntu 12.04 after installing mysql-server5.5 but I got the following problem. after checking it seems the subfolder var\run\mysqld that should contain the socket ...
0
votes
2answers
26 views

Problem to compile python and C++ code using ubuntu Ubuntu 12.04.5 LTS: problem with gcc

I am trying to compile a code involving python and C++ in Ubuntu 12.04.5 LTS and I have this type of error hammouc@kw13921:~/Documents/mimclib$ make python setup.py clean running clean removing ...
0
votes
1answer
70 views

Making my 32-bit program code compile on 64-bit Ubuntu (looking for safe path)

I have for the first time installed a 64-bit Ubuntu on my laptop. Now I am looking for a way to compile my old biology C++ project on this OS. I have a .sh file that installs all necessary packages ...
3
votes
1answer
49 views

How can I use sqlite3 in my Ubuntu Phone app? (C++ backend)

I want to create an app, which has a C++ backend and uses sqlite3. I can connect to an Database in memory using the following code:m_db = QSqlDatabase::addDatabase("QSQLITE"); ...
0
votes
0answers
66 views

C++ Broken Compiler GNU Radio CMake

I'm trying to build GNU Radio from git with a cross-compiling environment, but I get an error saying that my c++ compiler is broken. I've tried changing the compilers in the CMakeCache.txt inside the ...
0
votes
1answer
55 views

I can't compile a Qt project

I was trying to compile a project I checked out from github but I get these errors: /usr/bin/ld: cannot find -lQtGui /usr/bin/ld: cannot find -lQtNetwork /usr/bin/ld: cannot find -lQtCore It worked ...
6
votes
2answers
13k views

How do you find libraries(C++) in Ubuntu?

Sorry this is such a beginner question, but I've recently begun programming with C++ on Ubuntu 12.10 and I've installed a few libraries I need to work with, for example PCL and I can't find them to ...
0
votes
0answers
34 views

Create Ogre3D 2.1 project

I have downloaded the Ogre3D 2.1 source, compiled and installed it without any issues. To my knowledge I have a working installation. The problem now is that none of the official project templates ...
0
votes
0answers
54 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 ...
0
votes
0answers
14 views

where can I get opengeom.h?

I am reading about open geometry, and many documents reference an opengeom.h where can I get it, what package is it part of? I looked around in synaptic package manager, but there are many options, I ...
12
votes
3answers
58k views

How to install latest cmake version in Linux/Ubuntu from command line?

I am trying to install latest cmake in my linux box and I am always getting the below exception - userName@phx5qa01c-4e23:~/build$ wget http://www.cmake.org/files/v2.8/cmake-2.8.11.tar.gz ...
0
votes
0answers
29 views

Installing XML-RPC C++

I am trying to install XML-RPC for C++, and it seems like this library is the most often used. However, when building it using ./config, I get the error message: configure: ==>We are not building ...
3
votes
1answer
83 views

Installing latest version of wxwidgets

I am attempting to install the latest version of wxwidgets via the terminal. I followed these directions. However, when I navigated to the folder /usr/include, a folder was created called ...
0
votes
0answers
69 views

Undefined reference - fftw

I have a problem with compiling my code and I get the following error: /home/maxfkira/Demo/lib/libdemo.a(TracHold.o): In function 'exitTrac::extAL()': TracHold.cpp: (.text+0x1b): undefined reference ...
0
votes
0answers
11 views

C++ with compiler for Ubuntu 15.10 at 64G [duplicate]

I have tried to use GCC and g++ compiler which i am assured is embedded with my OS 15.10, I have tried using the terminal to no avail the question that i wish answered is this how can i make use of ...
0
votes
1answer
58 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 ...
1
vote
0answers
47 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
72 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
65 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
36 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?