C++ is a general-purpose programming language.

learn more… | top users | synonyms

1
vote
1answer
64 views

Start application in the background on GNOME

Is there a way to avoid bringing an application to the front when opening it? I'm launching an app several times trough a terminal window (running a custom c++ program) and it keeps popping up when ...
0
votes
1answer
1k views

How do I set up pretty printing gdb 7.5

I thought gdb 7.0 and higher has pretty printing included in it but I might be wrong? Can someone point me to the correct way to use this? Do I need to create a .gdbinit file for this? I tried copying ...
1
vote
1answer
1k views

How to install cocos2dx on Ubuntu 13.04?

I have Ubuntu 13.04 on my laptop. I need to install cocos2dx on it. Does any one know how to install it? Please explain how to install.
1
vote
1answer
254 views

Is Ubuntu more suited for Python based apps?

My question is simple. Is Ubuntu more optimized for text editor-like programs (Libre Office, Sublime Text, etc.) written in Python or not? Or there is no difference if I use C++, Python or Java in ...
1
vote
1answer
3k 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 ...
0
votes
1answer
770 views

QT4/5 Creator cannot find -lGL

I installed the ubuntu mobile SDK a while ago on my ubuntu 13.04 machine via http://developer.ubuntu.com/get-started/ After a few days there appeared a compiler/linker error - even when compiling the ...
0
votes
1answer
1k views

g++ error “sstream.tcc:112:39: error: expected unqualified-id before ‘(’ token”

I tried to install install one program at Ubuntu and it uses main.cpp .I dont know why but it gives always error.(main.cpp syntax correct 100%) and this program works without error @Mac system but not ...
7
votes
0answers
305 views

How can I run a command from a qml script? [duplicate]

I'm working on an Ubuntu Touch app that needs to modify iptables and do various other things that requires interaction with the command line. I found this and I understand that it must be done with a ...
4
votes
2answers
151 views

Do i need to know C++ to develop ubuntu app?

I'm a java developer. I dont know much about C++. should i learn C++ to develop ubuntu app? or can develop app without c++?
0
votes
1answer
385 views

Help with GDB on a C++ program

I am new to Ubuntu and am using the 12.04 version on my laptop. I am trying to execute a C++ program which has Petsc libraries installed in it. I get an error when trying to run the program and so ...
0
votes
1answer
152 views

How to add Password encryption

I have an encryption app that just encrypts a string and then can decrypt also.. But how can I make it so the user sets a password and the other person has to put in that password to decrypt the ...
3
votes
1answer
1k views

How do I get my compiler to locate the X11 header files?

I'm trying to use GLEW and XServer / X11 in a C++ app as instructed in Chapter 15 of the OpenGL Superbible, 5th ed. I'm using this Makefile: LIBDIRS = -L/usr/X11R6/lib -L/usr/X11R6/lib64 ...
2
votes
1answer
3k 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 ...
8
votes
2answers
2k views

Unity Launcher API for C++

I am trying to develop some program in QT with QT SDK. Yesterday I was reading about Unity Launcher API on official ubuntu website. But there is example only for Vala and python. Is possible to use ...
3
votes
1answer
1k views

How to install CLang using precompiled binaries?

How do I install CLang on Ubuntu, using precompiled binaries of CLang that I downloaded? Here's how I downloaded CLang: "LLVM Download Page" -> "Download LLVM 3.2" -> "Clang Binaries for ...
3
votes
1answer
102 views

C++ gtkmm-2.4 - How to calculate size of Unity Launcher/Panel?

I am using gtkmm-2.4 for my Ubuntu apps and to determine the size of the window for the application I use get_desktop_geometry. This returns the dimensions of the display you ask for. My issue is that ...
6
votes
2answers
2k views

How to pass the image preview from the QML Camera component to a C++ plugin

I'm writing an Ubuntu Touch QML app that captures and processes images from a camera device. The processing is done by a C++ plugin to which I'm passing the URL of the image. I can successfully save ...
-2
votes
1answer
300 views

Is Gcc 4.8.1 RELEASE available under raring 13.04 ? ( no snapshot, only release )

I need full c++11 support and I need gcc 4.8.1 release, I'm under Ubuntu 13.04 64 bit, there is a gcc-snapshot package in the repository, but it's outdated and it's an old pre-release version. It's ...
0
votes
1answer
52 views

routine program in ubuntu

I am trying to write a routine of my studies of next month. For that I want to write a timed schedule. That is a timed program that will tell me everytime I turn on my laptop which topics should I ...
1
vote
2answers
842 views

Can't run program in Netbeans 7.3

I recently installed Ubuntu 12.04 and installed Netbeans 7.3 on it (not the Ubuntu version, directly from the website). I'm trying to run a basic C++ program that uses Allegro 5 but, even though it ...
2
votes
1answer
209 views

Autocomplete while compiling a file with c++ is gone

I am using Ubuntu 13.04 and have been programming mostly in C++. I use vim editor and c++ command to compile my .cpp file. What I have noticed is after typing c++ and pressing the Tab key, an ...
2
votes
2answers
1k views

Ubuntu Touch app with c++ core and QML interface. How to create?

How to create Ubuntu Touch application with c++ core? In examples I see only pure QML apps.
0
votes
1answer
140 views

Unendable question C or C++

Got a question related to programming. I was planning to choose one more language, besides Java, and stuck between choosing C or C++. I am planning to create apps specifically for Ubuntu with GUI ...
2
votes
1answer
526 views

Why am I getting compile time errors in this C++ program?

I am new to Ubuntu and its terminal. I am trying to code C++ using nano something.cpp a general "Hello World" program at first. First I got some error about iostream.h and cout not recognised. I ...
0
votes
1answer
209 views

Memory allocation of C++ in Ubuntu

First of all, I'm sorry if the question doesn't belong here. I want to make sure whether this issue has to do something with my Ubuntu. The C++ code below makes 2621440 integer variables. Each ...
0
votes
3answers
359 views

How to open a crontab file in c++

I am working on a QT application which makes the usage of crontab easier with GUI. But I am facing the trouble of including the jobs in the crontab file from my application . So how do i open a ...
2
votes
1answer
616 views

i want to open a file in the root directory in my c++ application in write mode.

I have a file in the root directory which I want to open for editing in my QT application. Generally we use "sudo (editor) filepath" to open the file with roots permissions. But i want to achieve ...
1
vote
0answers
263 views

Will gcc >= 4.7 ever come officially to 12.04? [duplicate]

We have ubuntu 12.04 LTS installed at our systems, and we would like to use gcc >= 4.7 for C++11 support. Will a version of gcc >= 4.7 be added to the standard repositories (any time soon) or will the ...
0
votes
1answer
64 views

Can't install C++ library

I want to install the C++ library, but the terminal keeps asking me to insert the CD for installation. What CD? Here is the terminal code I used to attempt to install with: sudo apt-get install ...
0
votes
1answer
111 views

Check Shutdown Privilege

I'm trying to make a C++ program on Ubuntu that checks if a user can shutdown the PC, and, if so, shut it down for him. So, I'm thinking about getting the user ID, and then, checking if, or if not, ...
0
votes
1answer
862 views

Compiling a DLL project written in c++

I am new to Linux, but I have tried Ubuntu for basic stuff and I really like it. I want to explore the possibility to switch from Windows. However, at the moment I am working with Microsoft Visual ...
0
votes
1answer
807 views

Additional source directories using Geany

I'm using Geany in Ubuntu as an IDE for a C++ Project, and I want to use some external libraries (from Webots). However, I don't find the option to specify additional library paths (as one can find in ...
0
votes
1answer
529 views

C++ Compiler Program IDE [duplicate]

I have just installed Ubuntu 12.10 on my old laptop and I want to start working on it. Is there any program like Visual Studio for Ubuntu 12.10?
2
votes
1answer
1k views

A question about “add-apt-repository”(gcc 4.7 or bumblebee)

I installed Ubuntu 12.04 in my notebook and I use C++. I want to use C++11, so I want to upgrade my gcc to gcc-4.7. I ran these commands: sudo add-apt-repository ppa:ubuntu-toolchain-r/test sudo ...
1
vote
1answer
2k 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> ...
2
votes
3answers
932 views

How to see object code generated by g++?

g++ -c xyz.cpp creates an object file xyz.o But when I open it in vim editor it shows some crazy text... How can I see the machine code? What package can use to open and see that machine code?
0
votes
3answers
2k views

Choosing C++ debugger on linux

I recently changed from Windows where I was using Qt Creator to Ubuntu. The problem is that Qt Creator in Ubuntu can't properly debug due to some problem attaching ptrace to the program which was ...
1
vote
0answers
323 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
2answers
2k views

Installing Eclipse with Java and CDT

Long story short, my computer got a virus yesterday and when I tried to re-image the computer, I accidentally wiped out Windows. While I'm waiting for a Windows 8 OEM disc to get here in the mail, I ...
0
votes
1answer
3k views

Decrypting *.SO file [closed]

Situation: Long back i developed some coding in C and C++, by converting to *.SO file - i deleted those C and C++ files. Issue: I want to re-convert the *.SO files into C and C++ files for the code ...
2
votes
1answer
6k views

Installing MySQL Connector/C++

I would like to know which is the procedure to install the mysql c++ connector. After installing it to my Ubuntu OS will I have these extra c++ commands avaiable in every c++ IDE? For example, can I ...
0
votes
1answer
539 views

Trying to compile Magic Set Editor

When I try to compile magicseteditor I get these errors: g++ -DHAVE_CONFIG_H -I. -I./src -I/usr/lib/i386-linux-gnu/wx/include/base-unicode-debug-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 ...
1
vote
0answers
14 views

curl/types.h file or directory not found [duplicate]

I have a cpp code to compile but while compiling it is showing the error of curl/types.h file or directory not found, compilation error, fatal error. I am using ubuntu 12.10. please help me to fix ...
0
votes
2answers
328 views

Errors in a simple C++ program [closed]

#include<iostream> int main() { char ch = 'A'; int num = ch; cout << "The ASCII code for " << ch << "is " << num << "\n"; cout << "Adding 1 ...
1
vote
1answer
745 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?
-2
votes
2answers
146 views

Is there any C/C++ Runtime Enviorment for Ubuntu?

I am a C/C++ developer. I would like to run my .exe programs on my computer (which only has Ubuntu on it). I would like to know if there are any C/C++ Runtime Enviroments out there.
1
vote
1answer
572 views

Where can I find a Simple Hello World example for Ubuntu SDK (QT)?

I've been trying to get a simple window with button. And i have no idea on how to "bind" a button from the QML thing to a C/C++ function for example. I followed the example from developer.ubuntu.com ...
6
votes
1answer
7k views

How to add the ncurses.h to a C++ program compiled on gcc?

I am totally new to C++ programming on gcc. I wanted to add color to my text on the output on the console. Since there is no conio.h on linux, I researched and found that ncurses.h could do the trick. ...
3
votes
1answer
3k views

Why does gsl-library not compile/link in 11.10, despite that it did under 11.04 with the same makefile and program?

I have a problem with the gsl library in Oneiric - after upgrade from Natty to Oneiric I cannot build a program anymore with my own makefile, despite the fact that in QT Creator everything works fine ...
1
vote
0answers
363 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 ...