C++ is a general-purpose programming language.

learn more… | top users | synonyms

3
votes
0answers
471 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
59 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
37 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
42 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
704 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 ...
2
votes
0answers
230 views

Develop in C/C++ for Qt Ubuntu Touch projects

as said in the question I want to develop the code in C or C++ for my Ubuntu apps. I don't feel confortable in Javascript at all, and when I try to create a C or C++ file the IDE returns me Failed ...
1
vote
0answers
29 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
42 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
24 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
33 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
42 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
167 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
45 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
171 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
7k views

Installing boost on 12.04- have ran “sudo apt-get install libboost-all-dev”- now what?

I want to install the boost libraries on Ubuntu 12.04 so I ran: sudo apt-get install libboost-all-dev but now searching for a folder named "boost" I cannot seem to find where the files have been ...
1
vote
0answers
284 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
244 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 ...
1
vote
0answers
317 views

WebCam logitech C905 control in C++ and OpenCV

I am trying to change the the resolution of my webcam from inside my c++ program, which APIs can I use? where can I find copy/paste examples? My webcam works nicely under 12.10 and I can change the ...
1
vote
0answers
195 views

jQuery in Doxygen generated API documentation

I am using Doxygen on Ubuntu 12.10 to generate API documentation for a C++ library and demon. This works fine with one issue, I can not seem to resolve. Doxygen uses jQuery in the generated files to ...
1
vote
0answers
57 views

After upgrading packages today, can't compile anything that includes <locale>

I just updated my packages today on Ubuntu 12.04 amd64, including libc-bin which provides /usr/bin/locale, and now any C/C++ program that has #include <locale> explodes hundreds of errors ...
0
votes
0answers
7 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; } $ ...
0
votes
0answers
8 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
18 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
15 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
20 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
35 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
24 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
92 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
23 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
23 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
191 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 ...
0
votes
0answers
27 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
117 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 ...
0
votes
0answers
25 views

What are differences in Ubuntu C++ programming and Windows C++ programming?

The getch() function has to be replaced by getchar() in G++ (or any other compiler for that matter) for successful compilation. I am new to Ubuntu, so I would like to know what are the other possible ...
0
votes
0answers
264 views

g++ 4.8.2 on ubuntu 14.04 fails to compile source files

I'm really frustrated at present in that g++ is throwing up so many errors even on a simple .cpp file. I'm typing: g++ test.cpp at the command line. Thanks in advance for any help. I downloaded g++ ...
0
votes
0answers
28 views

Open NFC Compilation - g_pNALBinding error while compiling microread/hal_*

for generating the server application using AARDVARK, to access the NFCC, when I am entering make command in this directory: core/porting/linux/client_server/server/microread/hal_cc_client . ...
0
votes
0answers
113 views

Buliding and running NS-3 based program and doing all that trough Geany

everyone! Now, I wanted to set up my Geany so I can build, compile and execute any NS-3 based program instead of always using console way and compiling there the program and executing again in the ...
0
votes
0answers
186 views

“Code 126: Permission Denied” when using GDB Debugger

I have written a piece of C++ code and am trying to debug that using GDB Debugger. The code uses bunch of libraries, so I am using a make-file to compile and link all the required libraries, which I ...
0
votes
0answers
51 views

Unable to generate core dump after apport disable

Hi I'm currently programming c++ on Ubuntu and am unable to generate a core dump with a segmentation fault. I just get "Segementation fault" and not the (core dump) I have set ulimit -c unlimited. I ...
0
votes
0answers
160 views

How to take screenshot in jpeg format using ubuntu tools only

i need to develope a cpp software to capture screenshot ( in jpeg format ) and send images's bytes through a socket. I created correctly the server socket but i don't know how to take a screenshot ...
0
votes
0answers
55 views

undefined reference to gl/glut functions

I'm trying to compile a c++/opengl program I created on another machine running Debian on this machine running ubuntu. I'm pretty sure I've installed all the required libraries that I need. When I ...
0
votes
0answers
14 views

Ubuntu Gtkmm 3 window resize

I have a window and this is it's size: window->set_default_size(600, 400); The problem is when i set this: window->set_resizable(false); The window will shrink. Look in picture: below ...
0
votes
0answers
52 views

Where is the gls include path and lib in Ubuntu 12.04?

I am new to installing libraries in c++, I need to compile a code that uses gsl library, I used synaptic to install this library, but I don't understand where the files are. In the makefile of the ...
0
votes
0answers
48 views

Upgrade boost 1.49.0.1 to 1.54 on Ubuntu 12.10

Had stability issues with 13.10 and problems with secure boot on 12.04 so currently using Ubuntu 12.10. I have used the regular boost installation command from the terminal but because I am on 12.10 ...
0
votes
0answers
37 views

Why are gtk message dialogs in Xubuntu gray only? They have colorful icons elsewhere

I use Xubuntu 13.1 to develop some applications with gtk in c++ using libgtk-3-dev. I use message dialog boxes for error messages, like this dialog = gtk_message_dialog_new(GTK_WINDOW(mainWindow), ...
0
votes
0answers
37 views

running turboc++ in dosemu

my question is how to run borland turbo c++ version 3 in dosemu. I know dosbox works, but I am not able to copy the output produced in the program. I tried installing turco ++ in dosemu by navigating ...
0
votes
0answers
101 views

Codelite cannot build

I need your help in configuring codelite and clang or gcc or g++. I have installed clang and build essential. that means i have pretty much installed all I need. but codelite cannot build my ...
0
votes
0answers
18 views

How can we enable dm crypt keeping existing data onto the disk?

Is there any way to enable dm crypt; keeping the existing data onto the disk partition?
0
votes
0answers
44 views

Socket program didn't recognize client connections

I'm coding a socket program in C++ on ubuntu server. It will grab packet from client, process, and send back new packet (both via port 23101). It works fine when I tested on local computer, but it ...
0
votes
0answers
135 views

Can't boot Ubuntu 13.10 with OpenCV

I'm developing a c++ project on ubuntu 13.10. To compile this project i need OpenCV and Armadillo libraries. After the OpenCV installation (ver. 2.4.6) Ubuntu doesn't run. During the boot appears a ...