C++ is a general-purpose programming language.

learn more… | top users | synonyms

7
votes
0answers
303 views

Howto create a new C++ based Ubuntu touch project in Ubuntu SDK?

There is no option to start a C++ and QML based project in Ubuntu SDK. It only offers to create a QML project with no C++ codes. If I try to add C++ classes to the QML project, I get this error: ...
4
votes
0answers
81 views

What component is responsible for tray and how to manipulate it using C++?

My goal is to write a desktop gui application that will utilize these commands found in http://askubuntu.com/a/14083/18330 pacmd list-sinks to list name or index number of possible sinks pacmd ...
4
votes
0answers
644 views

clang++ (version 3.3) lacks headers

This seems odd. Take a simple C++ program #include <cmath> #include <iostream> int main(void) { std::cout << "Square root of 9 is " << sqrt(9) << std::endl; } ...
2
votes
0answers
104 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
79 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
60 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
880 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
252 views

clang++ fails to compile simple hello world c++ program

After upgrade to 14.04 from 12.04 clang++ stopped working. $ cat test.cpp #include <iostream> int main() { std::cout << "Hello World" << std::endl; return 0; } $ ...
1
vote
0answers
56 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
128 views

Get keyboard input without requiring root and without x11

I'm trying to capture keyboard input in a C/C++ program without requiring root privileges and without the use of X11 XNextEvent(). I've tried to open the device directly, but for obvious security ...
1
vote
0answers
566 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
40 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
51 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
66 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
223 views

A 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 I want to use for development a C++ project. Could someone show me the right place? screenshot here ...
1
vote
0answers
57 views

Way to catch shutdown event in Unity, Ubuntu 13.04

I'm developing gui application (C++/Qt) and now search for correct(documented) termination way for application. Is there any documentation how Unity DE notifies gui applications to exit (some analog ...
1
vote
0answers
193 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
338 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 ...
1
vote
0answers
312 views

How can I use Stroustrup's graphics libraries (Simple_window.h, Graph.h,…) in Netbeans

I'm reading and learning Bjarne Stroustrup's "Programming principles and practice using C++". I want to use graphics libraries from chapter 12-16 in Netbeans 7.3. I have already added header files ...
0
votes
0answers
17 views

file not found when trying to run code in codeblocks

When I go to run a program xterm comes up and it has "sh: 1: [address of file]/bin/Debug/[file name]: not found. Before I ran the program it says "It seems that this project has not been built yet. ...
0
votes
0answers
15 views

Problem - gnuplot not showing the graph window

I try to draw graph using gnuplot. I read this guide.I aompile and run below code without error but gnuplot is not showing the graph. I compile with gcc -o plot plot.c -lplot -lXaw -lXmu -lXt -lXext ...
0
votes
0answers
53 views

Can't compile C++ in Code::Blocks

I have some trouble with compiling c++ code from **Code::Blocks* IDE on Ubuntu. When I save the code as a .cpp data and click on Run under Build it says: "Target uses an invalid compiler; run ...
0
votes
0answers
26 views

Building and hosting Ubuntu packages using C++11

The full question would be: Is Ubuntu ready to host C++ applications packages, compiled with C++11, and which use a large set of dependencies? Let's say that we have an official Ubuntu package (C++ ...
0
votes
0answers
23 views

Signal called on user logout

I would like to ask what is the signal that is called when the user logs out? I have a Qt gui app that has handler for SIGTERM and SIGHUP signals. The app also has its own close event handler, so user ...
0
votes
0answers
18 views

how to make gcc search for headers in all subdirectories?

I'm new to Linux so please excuse me for my noobish question. I've installed libraries (PCL) which save their headers under usr/include as it should be. However, the problem is that an example of the ...
0
votes
0answers
72 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 ...
0
votes
0answers
25 views

How do I implement multiple keymaps into a kernel?

my problem is as follows: I have a custom-made kernel that has no functionality in regards of changing the keyboard mapping. It is possible to compile a different keymap into it, but that's it. The ...
0
votes
0answers
19 views

libstdc++: man std::sort or man std::algorithm failed

I have downloaded libstdc++-api.20140403.man.tar.bz2 from ftp://gcc.gnu.org/pub/gcc/libstdc++/doxygen/ and installed it. man std::vector is ok, while man std::sort and man std::algorithm both failed, ...
0
votes
0answers
55 views

eclips luna c/c++ on ubuntu 14.04

I have installed Eclips Luna for Linux but when I run a simple program a window is shown Launch failed .Binary not found I have tried two methods 1) Windows > Preferences > C/C++ > New CDT project ...
0
votes
0answers
38 views

Starting with SDL

Hy, i want to start learning/developing with the SDL library. I already found some usefull tutorials like lazyfoo.net. There I noticed there are many ways to use SDL (Console, IDE, ...). So can you ...
0
votes
0answers
221 views

How to install C++ libraries in Ubuntu 14.04

I've been searching for a couple of hours but I haven't found anything yet. I want to know which is the preferred method for installing C/C++ libraries in Ubuntu 14.04. Is there a CLI command or ...
0
votes
0answers
56 views

c++ compiler errors using make across multiple projects

I'm trying to install an LC3 assembler for school. I run the config script and type make and a several weird compiler errors pop up. I tried this building simpl and just now lc3db Here's output (the ...
0
votes
0answers
21 views

No SDLIMAGE found while running ./configure file

recently i installed libsdl1.2-dev to install a game, after installing it in system. I run ./configure file and I am getting new error checking for sdl-config... /usr/bin/sdl-config checking for SDL ...
0
votes
0answers
102 views

HelloWorld doesn't work in Eclipse

I just installed both eclipse and eclipse-cdt and tested it with "HelloWorld" in C++ perspective. It reported "cout wasn't declared in this scope". Then I used a texteditor to write exactly the same ...
0
votes
0answers
78 views

C/C++ Query EDID at boot time

I'm looking for a way to query EDID data at boot time on my Android system. I think I can use ioctl calls and I see that the frame buffers are at /sys/class/graphics/fb*. But currently I'm just ...
0
votes
0answers
245 views

Code Blocks dialog when build: “It seems that this file has not been built yet”

I have a problem when I use Code Blocks to program C++ on Ubuntu, when I press run, a dialog appeared: "It seems that this file has not been built yet" with three option: No, Cancel or Yes. If I ...
0
votes
0answers
186 views

Skipping incompatible error when compiling mysql library using arm-linux-gnueabihf

All problems posted related to mysql library use standard gcc compiler. However, I need to compile a project running on a beaglebone black device. Hence, I am using arm-linux-gnueabihf-gcc instead of ...
0
votes
0answers
31 views

building problem with boost after upgrading ubuntu

I have a code that i can build and everything was working until I decide to upgrade my version of ubuntu for the 14.04 one. Now I have this kind of error messages : ...
0
votes
0answers
47 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 ...
0
votes
0answers
24 views

How to connect a Button to FileDialog function in ubuntu sdk?

I've just started to deploy my first application for Ubuntu using QtCreator 3.1.1 based on Qt5.2.1 on Ubuntu 14.10.. I need to open some video files, so I'm going to put a Button to choose file ...
0
votes
0answers
35 views

C++ mounting samba share with glibmm

I'm trying to mount samba shared folders with C++. I found that with glibmm library I can do that, but I can't find any examples or tutorials. Somebody could post some example code? Thanks.
0
votes
0answers
26 views

Qt-> how to set ALT key active

Can someone please explain how to set the Alt key as active permanently? I'm trying to make an application for Ubuntu and I need to make it active. I want to add it to the code below in the if ...
0
votes
0answers
29 views

Prolog-C++ inteface doesnt work

I want to use prolog in C++ as a knowledge base or logical service(Embedded prolog in C++). I've searched alot but found nothing which can help me. I also checked the official link: ...
0
votes
0answers
61 views

excel query in qt

I have a program to connect with excel file. my excel file contains usernames and passwords of users who has access Permission to application. in interface of the program i have two QlineEdit(one for ...
0
votes
0answers
36 views

Qt C++ windowMinimized no reaction on Ubuntu

Heloo all! Me and a friend are creating an app for linux, everyting works but the custom minimize button doesnt whant to work on Ubunutu 14.04, there is no reaction when presed clicked an so on. Any ...
0
votes
0answers
242 views

cmake: Configured compiler /usr/bin/c++ does not support thread local storage

I'm trying to build Geant4. I got some problem on cmake that I have no idea what to do. Whenever I try to build on home directory, everything works just fine. Here's the output: ...
0
votes
0answers
39 views

How do I add C++ Source and Header Files to UbuntuSDK Project?

I am trying to add some C++ Code to an Ubuntu SDK Project which is (GUI) based in QML. Unfortunately I can't seem to understand how I am supposed to do this. Usually QTCreator allows me to right click ...
0
votes
0answers
27 views

customized run of C++ program in Eclipse CDT on ubuntu

I have a folder of source codes, which using the make simply it generates diferent binary files. Y1,Y2,Y3, ..Y6, which are different versions of the program. For the build process in Eclipse, ...
0
votes
0answers
44 views

Remote control of C++ program in Ubuntu via HTTPS

I have an emulator program written in C++ running on Ubuntu 12.04. There are some settings and options needed for running the program. I need to query and control these options via HTTPS from a remote ...
0
votes
0answers
259 views

How can I use C++11's <regex> on Ubuntu?

I normally use the G++ compiler, but I don't have anything against using clang++. Reading about this, I get the idea that G++'s implementation of C++11's regex might not compile, and if it does, it ...