C++ is a general-purpose programming language.

learn more… | top users | synonyms

0
votes
1answer
31 views

Ubuntu freezes in recursion g++

Im using Ubuntu 14.04 and gcc version 4.8.2. Sometimes when I run some C++ code which has some bugs, for example Runtime Error, it goes to a deep recursion (I suppose...) and all my computer freezes. ...
0
votes
1answer
20 views

How to interface with Nexus 4 sensors in Ubuntu Touch through C++ program?

I'm developing a C++ program on Ubuntu Touch (Nexus 4, no GUI) and I would like to read some accelerometer values in. I was hoping I could just include a library and call a function that would return ...
0
votes
1answer
22 views

How I know what version of clang I have installed?

How I know what version of clang I have installed ?
0
votes
1answer
10 views

Why does my QQuick application crash on Ubuntu 14.04?

Basically I have (The Game class just wraps QGuiApplication): int Game::run() { QQuickView * mMainView = new QQuickView; mMainView->setResizeMode(QQuickView::SizeRootObjectToView); ...
1
vote
1answer
22 views

Build Celestia on Ubuntu 14.04

I'd like to build Celestia-1.6.1 on my Ubuntu 14.04 machine however, it seems that I can't do that easily with the gcc version 4.9.1. I'm using source files from ...
0
votes
1answer
25 views

Unable to run g++ after upgrading to Ubuntu 14.10

I did the update from Ubuntu 14.04 to Ubuntu 14.10 yesterday. Today I tried to run g++-4.8 as I normally do, but I have the following error: make: g++-4.8: Command not found I have the same error ...
0
votes
0answers
16 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. ...
1
vote
1answer
22 views

Touch App with QML Extension Library does not run on device or emulator, only desktop

I'm trying to create a QML app with a C++ backend using the Ubuntu SDK (Qt Creator). There is a template called 'App with QML Extension Library' When I run this using the Desktop kit it compiles and ...
0
votes
0answers
12 views

Using C++ in Ubuntu [duplicate]

I'm new to Ubuntu and and want to know how to run and compile programs in C++ Can i get a step by step detail please? I did try once but got only a blank thing nothing else i really want to use this ...
0
votes
0answers
13 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
1answer
20 views

some libraries are missing in 14.04

I want to install MySQL Workbench Community,but in terminal when I attempt to install It always says to me libnetcdf6 is missing and gives error. I tried to find this but It is just available on ...
0
votes
0answers
45 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 ...
2
votes
3answers
200 views

How to deploy: ubuntu | apache | python | C++ | mysql [closed]

What if you want to make a non trivial web site and/or web service? How to deploy production server Apache with python for frontend and C++ for backend and MySQL for persistance? What glue should ...
0
votes
0answers
23 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
4answers
48 views

First Time To Run C++ Program on Ubuntu 14.04

What is the command to run the following simple C++ program? #include <iostream> using namespace std; // main () is where program execution begins int main() { cout << "Hello World"; ...
0
votes
0answers
20 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
2answers
67 views

Accidently deleted header files in /usr/include/c++

I accidently deleted the folder with all the C++ header files that resides in /usr/include/c++. What do I do to recover the UPDATE I did get the header files back now in /usr/include/c++. However, ...
0
votes
0answers
16 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
61 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, ...
-1
votes
2answers
80 views

C++11 IDE for Ubuntu 14.04 [duplicate]

I'm a CS student and I use C++. What are some great C++11 IDEs on Ubuntu 14.04? I used to use Visual Studio.
0
votes
1answer
39 views

/usr/lib/i386-linux-gnu/libmysqlclient.so.18: no version information available

I wrote a program in C++ (QtCreator) on Ubuntu 14.04 LTS which reads values from Web-API's (curl) and stores them in a MySQL Database (using the MySQL C-API). When I start the program on my Desktiop ...
0
votes
0answers
50 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
1answer
39 views

Executable not created upon compilation using Dev C++ on Wine [closed]

I recently installed Wine so that I could run and use Windows applications in an Ubuntu environment. However, after I installed Dev-C++ version 5.4.1 , I found that I could write and compile programs ...
0
votes
0answers
10 views

libraries for c++ development [duplicate]

I am a student and switched form windows to linux just a few months ago. I don't know anything about the paths and libraries in linux. Now I need to work on c++. I need an IDE and compiler that can ...
0
votes
0answers
35 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 ...
2
votes
1answer
30 views

Add external library to Ubuntu App in Ubuntu SDK

I am trying to add the QuaZip library to my project (https://launchpad.net/vadetux). I have tried setting the EXEC variable in the CMakeLists.txt to: set(EXEC "qmlscene -I /usr/include/quazip $@ ...
4
votes
0answers
78 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 ...
0
votes
1answer
158 views

How to compile C/C++ program with GStreamer

I'm trying to compile this code: #include <stdio.h> #include <stdlib.h> #include <gst/gst.h> int main (int argc, char *argv[]) { const gchar *nano_str; guint major, ...
1
vote
1answer
131 views

Problems when running OpenGL c++ programs with with nVidia Driver 331 installed

I am using Ubuntu 14.04 with nVidia Driver installed. When I try to run the very basic GL tutorial. And build it with g++ -Wall -std=c++0x -o "tutorial" "tutorial.cpp" -lglut -lGLEW -lGL #include ...
0
votes
0answers
207 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
53 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
2answers
112 views

How to install Extreme tux Racer

I have extracted down Extreme tux racer in my home folder, after extracting it in same folder, i run commands- ~/game/autorun.sh ~/game/./configure then following commands run- checking for a ...
0
votes
0answers
94 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
75 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 ...
1
vote
1answer
27 views

Cannot install g++ 4.8 on OpenVZ

I have everything set, but doing apt-get install g++4.8 gives me the following java (!?!?!?) related error. Setting up ca-certificates-java (20110426ubuntu0.10.04.2) ... Error occurred during ...
1
vote
1answer
93 views

How do you use Q_INVOKABLE to access c++ functions in QML?

I am looking for the most simple and straightforward example. For my part; .h public: KTerminalDisplay(QQuickItem *parent = 0); ~KTerminalDisplay(); Q_INVOKABLE void setFontStyle(QString & s); ...
0
votes
0answers
242 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
1answer
58 views

How to use GDB to trace C++ library?

Recently, I want to use GDB to debug my C++ program. But I find when I use CTRL+X+A to see the source code of my program, it cannot show the library code of C++. For example, when I want to trace ...
-1
votes
1answer
95 views

how to install downloaded g++4.8 deb archive in ubuntu 14.04 lts?

I have installed Ubuntu 14.04 LTS. The g++ compiler is missing in it. So, I downloaded g++ 4.8 deb archive. But I am not able to install it. ehn I open the package, ubuntu software center opens up and ...
0
votes
1answer
27 views

Can I remove cpp from Ubuntu without causing any issues?

I have a C++ compiler installed on a Ubuntu server I am using as a LAMP stack. Will it cause issues for me to remove C++?
0
votes
0answers
183 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 : ...
1
vote
1answer
150 views

Separate terminal windows for input and output streams

How do I use different xterm or terminal windows for input and output streams while programming in C++ such that I enter input in one terminal window and get output in another window?
0
votes
0answers
46 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
246 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; } $ ...
2
votes
1answer
76 views

How do I create simplistic window-like elements in a command-line program?

When I execute sudo dpkg-reconfigure lightdm in the terminal I see a simplistic window-like listmenu. Is there an way to make something like that in C++? This looks something like:
1
vote
0answers
55 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 ...