C++ is a general-purpose programming language.

learn more… | top users | synonyms

0
votes
3answers
2k views

how to play audio file using c++ in linux

I am coding this c++ program .I want to play audio clip, format dosen't matter , its just I wrote hello word the most basic program of any language but the thing is instead of showing hello world on ...
4
votes
0answers
639 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; } ...
1
vote
1answer
519 views

Is it possible to let gcc 4.7 and gcc 4.8 co-exist in Ubuntu 13.10

I have some development work, it seems that GCC 4.8 will not work well with other development tools, so I may have to stick with GCC 4.7, but I am not sure if this is allowed in Ubuntu 13.10(64bit). ...
0
votes
1answer
85 views

920828 - how to open and build a VS2010 solution in precise?

Is it possible to open a VS2010 solution in an IDE environment and build it and get the same output in ubuntu? I mean pressing F5 runs the program (maybe via Wine) in the same way? I don't mean .Net ...
1
vote
3answers
162 views

Why am I getting these undefined errors when I compile a C++ program in terminal?

I have a C++ program that compiles and runs perfectly in Code Blocks. However when I try to compile it from the terminal using: gcc -g main.cpp -o Main I get a lot of undefined references: And ...
0
votes
2answers
54 views

Application development in Ubuntu using C++

I want to write applications for Ubuntu. I do not know much about programming, but I want develop for Ubuntu. I am trying to learn C++ right now. What do you think is the best way to develop apps for ...
0
votes
1answer
317 views

Why isn't the cppconn folder in /usr/include?

I am new to C++. I am trying to make a MySQL connection. I found that it requires mysql-connector. I installed boost-dev-all . I have put my mysql-connector in local directory ~/bin. I have ...
0
votes
1answer
128 views

Unable to compile programs in Ubuntu with Geany

I'm having trouble compiling a simple C++ program in Geany. The result is same even if i just use terminal(not using Geany).
4
votes
0answers
399 views

QtCreator creates unwanted windows [closed]

This issue occurs on raring with the build "qtcreator 2.8.1-0ubuntu1~raring1~test1", the latest from the software center. It works fine in general, but if you click on "Welcome" and than on "Develop", ...
1
vote
1answer
7k views

Error : Cannot run C compiled programs. if you meant to cross compile use --host' Ubuntu

I'm completely new to Ubuntu I downloaded and unpacked a tar.gz package, after extraction, it is said in its documentation : "type ./configure --disable-gts" But when I run this command alone it ...
0
votes
1answer
329 views

log4cxx/logger.h or libcql/cql.hpp fatal error while doing make -j4

I am running make -j4 and I am getting below exception... userName@phx5qa01c-4e23:~/build$ make -j4 [ 1%] [ 2%] Building CXX object nda/common/loadtest/CMakeFiles/loadtester.dir/LoadTester.cc.o ...
2
votes
2answers
11k views

How to install latest cmake version in Linux/Ubuntu from command line?

I am trying to install latest cmake in my linux box and I am always getting the below exception - userName@phx5qa01c-4e23:~/build$ wget http://www.cmake.org/files/v2.8/cmake-2.8.11.tar.gz ...
0
votes
1answer
445 views

Gtk: Webkit WebView C++ (can't load url + awkward terminal output)

I am trying to include a webkit webview within my c++ application. My project uses Glade ui, and I embedded webview into a scrolled window. What I do not understand at all is this awkward output + ...
0
votes
1answer
265 views

Make a c++ project in eclipse

I installed eclipse, jdk ,gcc and g++. When I open eclipse and want to make a new project, I have no option for a c++ project. what do you think?
1
vote
0answers
4k views

Trying to compile Opencv C++ code getting some Reference error [closed]

do we have to give path for OpenCV in Ubuntu 13.04.If so Tell me that also ? This is code : #include "opencv2/opencv.hpp" #include "opencv2/video/video.hpp" #include "opencv2/highgui/highgui.hpp" ...
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 ...
5
votes
1answer
59k views

How to install g++ compiler?

I have tried the following: sudo apt-get install build-essential Reading package lists... Done Building dependency tree Reading state information... Done build-essential is already the newest ...
2
votes
1answer
5k views

Is there any library similar to <conio.h>?

I used the IDE DEV C++ to compile C programs on Windows and I used the libraries and , but now I use Ubuntu and downloaded the Codeblocks, but it does not have these libraries. I just wanted to use ...
1
vote
1answer
334 views

What is changelog.Debian.gz file during packaging?

while packaging I encountered following error dh_builddeb dpkg-deb: building package `remotedevicecontroller' in `../remotedevicecontroller_1.0-1_i386.deb'. dpkg-source -b remotedevicecontroller-1.0 ...
0
votes
0answers
109 views

Not sure which IDE I should use for editing codes written in C [duplicate]

I am looking for an IDE which I can use to edit/compile/run C/C++ codes on my Ubuntu 13.04 installation. I have been checking the forum for information, and I found Anjuta being suggested by a few ...
0
votes
1answer
289 views

can use c++ write custom qml plugins in ubuntu sdk [closed]

Recently, I want to develop a app for ubuntu showdown, but I want to use some plugins use c++. So I want to write custom plugins, then I create a project with qml extension library. However, when I ...
3
votes
2answers
988 views

what is the purpose and role of rules file in debian packaging

I am trying to debian package my C++ application developed with aid of Netbeans 7.3. Here is bit of Makefile of it. APPNAME=remotedevicecontroller install: install config.xml ...
2
votes
1answer
382 views

undefined reference to `GDALAllRegister' [closed]

I have problem with gdal. I am currently working on Ubuntu and the IDE is Eclipse CDT i have given my code below and i have also installed the gdal package but it gives build errors #include ...
0
votes
1answer
4k views

Couldn't find any package by regex libstdc++.so.5 libexpat.so.0 in 32-bit ubuntu 12.04

While installing a software wink, I got stdc++ and lib expat packages not found. prayag@prayag:~/wink$ ./installer.sh Wink requires that the following packages be installed to run properly. Please ...
1
vote
1answer
130 views

C++ graphic on Geany + Xlib + BadAlloc = destroyed Friday

I have been trying to run a C++ program using Geany, and now, after ages of coding, I want to test the program. This is what comes up: Xlib: extension "NV-GLX" missing on display ":0". X Error of ...
0
votes
1answer
98 views

How i can open (.it) file?

I am doing a Project in Communication field by using Ubuntu 13.04. The project executed by simulation and the output will be in the format of .it files. some body could help me , how can I open ...
1
vote
1answer
1k views

MAC OS X virtualization with KVM on the mac mini : seabios error

Since I'm a legal owner of the first generation of Mac Mini with a regular Snow Leopard license,I'm trying to follow this tutorial with the goal to virtualize Mac Os X with KVM on the second part of ...
1
vote
1answer
68 views

What are some Ubuntu projects to contribute?

I decided to take part upon developing Ubuntu applications although I am having trouble finding projects to contribute in C, C++, C# and Java at Launchpad (not necessarily Launchpad alone). Can you ...
1
vote
1answer
310 views

GtkSourceView in Glade and C++

I try to develop a text editor in C++ and Gtkmm using Glade but I have a problem. When I try to run the program, I have the following message:"BuilderError: Invalid object type `GtkSourceView'". I ...
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
262 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 ...
3
votes
1answer
564 views

Arrow keys in Terminal shortcut don't work

I am new to Linux and am using Ubuntu 13.04. I have a C++ program named "dictionary" (full path: /home/anmol/Desktop/c++/dictionary), which I compiled with Code::Blocks IDE (and GCC version 4.7.3). ...
19
votes
3answers
3k views

Is it possible to use Python with the Ubuntu SDK?

David Planella wrote in his answer to a question I posted that: ...the recommended way to develop apps for Ubuntu is the Ubuntu SDK. So I installed it, but looks like the supported programming ...
0
votes
1answer
396 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 ...
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 ...
4
votes
2answers
152 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++?
4
votes
2answers
142 views

Where to find GUI code

I've been rummaging through Unity's source code (Shell Interface) and I was a little curious about something; where in the code are you supposed to find positional code? I'll clarify a bit with some ...
1
vote
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 ...
3
votes
1answer
8k 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 ...
-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 ...
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 ...
0
votes
1answer
780 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 ...
1
vote
2answers
873 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 ...
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 ...