C++ is a general-purpose programming language.

learn more… | top users | synonyms

3
votes
0answers
99 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 (...
2
votes
0answers
613 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 ...
2
votes
0answers
2k views

Prefix and Path for Cross GCC in Eclipse

I'm pretty new in ubuntu and have a problem with it. I wanna to write a c++ program in eclipse and compile it with cross gcc. At the first i Added "CDT" from "help-->install new software" Now when ...
2
votes
0answers
117 views

Two webcams of the same model are not working

I've been developing a dual webcam system for stereoscopic purposes, in a linux enviroment, using c++ with the opencv library The ideal setup would be with 2 webcams of the same model, but it didn't ...
2
votes
0answers
286 views

lock/unlock events for in C++ app which should not depend on screen savers

We have a product, which was developed for Windows. Because of customer request we are developing it for Linux also. So being a beginner to Linux, have migrated most of it (which I loved it). Now got ...
2
votes
0answers
207 views

Modifying default KawigiEdit C++ template in Ubuntu 12.10 LTS

I am trying to edit default c++ template of KawigiEdit plugin, but after I configure and save the modified template as default template, there is no effect. Has anyone modified KawigiEdit's default ...
2
votes
0answers
91 views

Publish a QML/C++ application as a click package

I've written an application which I would like to publish as click package. All the guides and prepared projects mention plain QML applications only. My application furthermore depends on a shared ...
2
votes
0answers
1k views

Problems installing gcc for cross compiling for ARM

I've been trying to install the gcc-arm-linux-fnueabi package, and I've done it a few times by a few different methods but I always seem to be missing the c++ folder in the includes directory. To ...
1
vote
0answers
22 views

How to compile code written in Solaris using g++?

I am trying to compile code written by a researcher, the code seems to have been written for solaris machine and compiler, with header files like sunmath.h etc. How do I compile and run this code on ...
1
vote
0answers
22 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 '...
1
vote
0answers
46 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 ...
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 ...
1
vote
0answers
105 views

How to cross compile to an old i486/i586 architecture (Vortex86DX)

I need to cross compile to Vortex86DX. It seens to have a i486/i586 architecure. What packages is needed to install on Ubuntu ? As stated here, just asking the compiler to -match=i586 doesn´t work ...
1
vote
0answers
72 views

How to install gtkglextmm in Ubuntu LTS 14.04?

Can you let me know the steps to install "gtkglextmm" in Ubuntu LTS 14.04? For learning experience, I am trying to compile basic examples from "gtkglextmm"? According to the "README" file from "...
1
vote
0answers
88 views

Parallels Tools breaks SFML

So I created a clean VM of Xubuntu 14.04.2 in Parallels 10.2.1 and I got SFML working properly with sudo apt-get install libsfml-dev. Then I rebooted and made sure it still worked, and after that the ...
1
vote
0answers
1k views

gcc: fatal error: no input files

I just installed Ubuntu (14.04 LTS) for the first time and I went straight to programming. I installed MonoDevelop and tried to create my first C++ program on Ubuntu. However, when I tried to build ...
1
vote
0answers
600 views

Trouble installing Boost 1.58

running 14.04 LTS. I've gone and actually deleted the Boost directory from my /usr/include directory. I'm still trying to figure out how exactly to install this and get it working with my application. ...
1
vote
0answers
162 views

Have Qt Creator execute gdb command after all libraries are loaded

I would like to setup Qt Creator debugger to ignore all boost files when stepping through my code. Just to test, I added the command: "skip file /usr/include/boost/ptr_container/ptr_sequence/...
1
vote
0answers
149 views

Could not able to compile with /opt/ELDK42/usr/bin/ppc-linux-g++

here is my test.cpp #include<iostream> using namespace std; int main() { cout<<"hello world"; return 0; } $ /opt/ELDK42/usr/bin/ppc-linux-g++ test.cpp ...
1
vote
0answers
274 views

Problem with installing Qt5.3

I am trying to install Qt5.3 into my Ubuntu 14.04(64 bit). While installation process was running suddenly it was showing some prompts and showed several error messages as following: Error during ...
1
vote
0answers
133 views

Ncurses problem

I try to make my first program which use ncurses. The problem is that screen got clean when it meet first time ch = getch(); # include "sys/ioctl.h" # include "ncurses.h" # include "unistd.h" ...
1
vote
0answers
973 views

Unable to compile C++ Code

Whenever I try to compile a C++ file with IOStream , I get this error.. I've tried reinstalling GCC G++ (both 4.6 and 4.9) AND cpp.. It hasnt helped (or maybe I didnt do it the right way). How do I ...
1
vote
0answers
101 views

c++ debug jump back netbeans and eclipse

All the latest netbean ide and eclipse ide for c++ open some project and then rebuild and debug, it will somehow jump back to somewhere when I press step over,like this (from 44 to 40): Can ...
1
vote
0answers
87 views

Developing 32 bit application and using it in 64 bit Ubuntu 14.04

I would like to develop 32 bit c++ applications on an Ubuntu 14.04, 64 bit machine and use it on both 32 bit and 64 bit machines. One of the main difficulties I face is that I use some library which ...
1
vote
0answers
2k views

Cmake fails while configuring OpenCV

I'm trying to buid OpenCV and use it in Qt. I have installed all required packages for OpenCV and Qt, after that I tried too run cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local /...
1
vote
0answers
83 views

Qml HUD integration without MainView?

I'm working on an app with Qt Quick Components, I don't want to use any Ubuntu specific components because I want the desktop version of my app to be more portable than that (Qt 5.2 is enough of a ...
1
vote
0answers
116 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 ../...
1
vote
0answers
145 views

How do I set the F77 environment variable to gfortran?

I'm new Ubuntu (and linux) user. In order to do my senior project, I have to install psrchive I use this command to install psrchive ./psrsoft/bin/psrsoft psrchive --no-cfitsio This is part of ...
1
vote
0answers
351 views

Program not running properly when run in terminal

I am running C++ programs using the Gnome terminal emulator in Ubuntu 10.04. The program has a number of steps and I get the program to print something to terminal after every one to tell me how far ...
1
vote
0answers
555 views

C Time.h functions erratic on Precise 12.04

I'm running Ubuntu 12.04 and using the gcc compiler to compile my C/C++ programs. I want to benchmark a function. AFAIK, there are two standard functions to calculate time on POSIX systems and both ...
0
votes
0answers
18 views

Codeblocks error undefined reference to curl_global_ in C++

I new to the web application of c++ and trying to learn about fetching websites and its contents using curl in c++ . My aim is to create a c++ programe which can parse json data from a website. I am ...
0
votes
0answers
28 views

collect2: fatal error: cannot find 'ld' compilation terminated

When I try to run c and C++program I am getting collect2: fatal error: cannot find 'ld' compilation terminated. I have already install GCC and G++ latest version. Any buddy please help.
0
votes
0answers
18 views

Can't find installed app

I downloaded CLion IDE for C and C++ the other day, and I am trying to remove it. But when I go to the software store under the "installed" section, CLion isn't there. But I am able to load up the app ...
0
votes
0answers
16 views

Caffe installation

CXX src/caffe/util/math_functions.cpp In file included, from /usr/include/boost/optional.hpp:15:0, from /usr/include/boost/format/internals.hpp:20, from /usr/...
0
votes
0answers
25 views

Installing and using universal-ctags instead of exuberant-ctags

How could I switch from exuberant-ctags to universal-ctags. I am using Ubuntu 16.04 LTS and ctags --version reports Exuberant Ctags 5.9~svn20110310, Copyright (C) 1996-2009 Darren Hiebert
0
votes
0answers
46 views

Can not compile due to curl

I use Ubuntu 14.04 (trusty) under user to compile a project which linked to libcurl.so symbol, but it complains: ~/local/lib/libcurl.so.4: no version information available (required by cmake) /bin/...
0
votes
0answers
32 views

How to work with QVariant(QJsonDocument) in javascript

I try to write a ubuntu app. My problem is, that i want to fill the ListModel in my qml. ListModel { id: model } i do that by using javascript: fill(database.get()) The database is defined ...
0
votes
0answers
41 views

Ubuntu Touch Development - first steps in cross-compiling and installing?

I have a bit of home-built C++ code using Qt that I run on my Ubuntu Desktop, and I've been fooling around with the Aquaris M10 tablet running Ubuntu Touch for a while... I got to thinking, I'd really ...
0
votes
0answers
12 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 key-...
0
votes
0answers
18 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
22 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
0answers
411 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 ...
0
votes
0answers
48 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') ...
0
votes
0answers
30 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
0answers
114 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
0answers
15 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 ...
0
votes
0answers
64 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 ...
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
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 /...