C++ is a general-purpose programming language.

learn more… | top users | synonyms

2
votes
1answer
83 views

C++ system() function for further arguments in ubuntu

I didn't really know how to even look for the solution for this one. My problem is, how to execute system commands in c++ using function system(); but for more arguments(Come on it sounds awful). Let ...
1
vote
1answer
77 views

Ubuntu SDK: QML with C++ recommended App Design Methodology

Are there documented general guidelines for mixing QML with C++ for ubuntu apps? "QML for UI design and C++ for logic" seems to be the trend. Is this the right way forward?
1
vote
1answer
375 views

Issues with importing existing source C++ code in Eclipse CDT

I have cloned an emulator's source code from git, and would like to work on it on Eclipse CDT on my Ubuntu 12.04. I have tried different ways, such as creating a hello world project, and simply ...
0
votes
0answers
24 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, ...
1
vote
2answers
92 views

How do I compile a C++ program I made in vim?

Whenever I type in g++ toe.ccp this comes up: /usr/bin/ld:toe.ccp: file format not recognized; treating as linker script /usr/bin/ld:toe.ccp:1: syntax error collect2: ld returned 1 exit status
1
vote
0answers
420 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
35 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
1answer
325 views

Unmet dependencies for libstdc++

When i type: sudo apt-get install libstdc++ i got: The following packages have unmet dependencies: libstdc++-4.8-doc : Conflicts: libstdc++6-4.4-doc but 4.4.7-8ubuntu1 is to be installed ...
0
votes
2answers
1k views

Are there drivers for OpenGL 4.3 for [AMD/ATI] Seymour [Radeon HD 6400M/7400M Series] (Ubuntu 14.04)

I want to be able to do opengl4.3 c/c++ programming, the [AMD/ATI] Seymour [Radeon HD 6400M/7400M Series] should be able to support it, I just don't know what drivers I have to install Also I have ...
0
votes
0answers
168 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 ...
1
vote
3answers
246 views

Unmet dependencies libc++ [duplicate]

How should I correctly install clang's c++ library (with STL) on my lubuntu machine? I want to use clang and its c++ library because it offers better support for the upcoming c++14 standard. When ...
1
vote
0answers
76 views

Why is gdb progfile producing a segmentation fault? [closed]

I have a g++ project and would like to debug it using gdb. Opening gdb with the program as an argument produces the following output: Reading symbols from <my_app_name>...Segmentation fault ...
0
votes
0answers
36 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 ...
1
vote
0answers
30 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
47 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
1answer
100 views

How to set /usr/bin/i586-mingw32msvc-g++ to gww?

I use cross compiling for C++ using MinGW... I use /usr/bin/i586-mingw32msvc-g++ filename.cpp to compile, but I want to be able to type gww filename.cpp I think I need to set a PATH ...
0
votes
0answers
403 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
1answer
306 views

OpenGL in Ubuntu [closed]

I'm new to ubuntu. I'm using openGL in visual studio 2010 in windows platform using c++ language. Now I'm migrate to ubuntu 12.04. Can I do the same on ubuntu? If yes. what is the way I have to do.. ( ...
0
votes
2answers
29 views

ubuntu packaging help

HI I have been using Ubuntu for a while now and would like to create Apps for Ubuntu. I have made a fun game and would like to have it in the software centre but I do not know how to create a debian ...
0
votes
2answers
45 views

Why standard output is not printed on command line? [closed]

I'm new in programming. I run simple C++ program, like this: #include <iostream> int main(int argc, char *argv[]) { std::cout<<"What?";} by using the terminal by typing g++ Program.cpp. ...
0
votes
0answers
35 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
173 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 ...
2
votes
0answers
52 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 ...
0
votes
1answer
731 views

Install opencv eclipse

I am using ubuntu 13.10 and I am trying to install opencv on eclipse. I am following this tutorial LINK I do not know where is my library. This what I obtain when I try to find the files. ...
0
votes
0answers
416 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 ...
2
votes
1answer
134 views

Why wouldn't sound be heard on the phone when it works on the desktop with an Ubuntu Touch app?

I have an Ubuntu Touch application in the works. The application needs to playback sound. I've used QtMultimedia from C++ for sound playback. The sound plays fine on PC but not on the phone. The odd ...
8
votes
1answer
188 views

apt-get install <package> equivalent using C++ apt-pkg library

I am building a small QT (C++) application where I ask user the software he want to install. Once he selected some packages a, b, c from the list all I have to do is run sudo apt-get install a b c ...
0
votes
1answer
86 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 ...
1
vote
1answer
488 views

Netbeans and codelite do not recognize #include <iostream> C++

I recently decided try learn a bit of programming, so I wrote my " hello world" and it did not work. This is my code #include <iostream> using namespace std; int main() { cout << "hello ...
1
vote
1answer
252 views

undefined reference to `dlopen' despite CMAKE_DL_LIBS

I'm trying to install the tools for gameplay3d. After following the cmake installation instructions, I get this error: Linking CXX executable gameplay-encoder /usr/lib/gcc4/x64/release/libfbxsdk.so: ...
1
vote
0answers
55 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 ...
0
votes
0answers
231 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
1answer
52 views

How to add paths in ubuntu

I know that this is a very popular question with a lot of threads already about it, but unfortunately after trying some of the suggestions I didn't manage to solve my problem, so I am posting a new ...
0
votes
1answer
103 views

what is the best editor for C++. I want to use C++ for my Masters project [duplicate]

what is the best editor for C++. I want to use C++ for my Masters project. Please suggest the best editor for C++
0
votes
0answers
90 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
1answer
84 views

Cannot find -lxi

I am trying to compile and run an OpenGL/GLUT program i created on another pc on my virtual machine ubuntu at home. I've installed freeglut3 and the other OpenGL libraries, but when I try to compile I ...
0
votes
1answer
5k views

Fatal error: gl/glut.h: no such file or directory [closed]

I've been learning C++ and I'm attempting to write a program. I keep getting this error. I've read through other similar problems that people were having, and nothing has worked for me.
0
votes
0answers
15 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 ...
3
votes
1answer
676 views

Embedding C++ Objects into QML with Context Properties

According to Qt5 documentation: exposing methods including qt slots all public slots of C++ classes that inherit from QObject, are accessible from QML Here what I did: C++ class MyClass : public ...
3
votes
1answer
91 views

Install newly developed app on Ubuntu Touch device

Host OS: Ubuntu 12.04.4 LTS Ubuntu Touch Device: Nexus4 Running Ubuntu 13.10 My dev environment is QtCreator with the ubuntu-sdk plugin I'm trying to deploy the QML / C++ sample app (the one ...
2
votes
3answers
316 views

IDE/Compiler for C or C++ Programming [duplicate]

Is there any software that supports on C or C++ Programming? Then, if it so, how to run, compile or debug your own code to display its output via terminal(linux/ubuntu) or cmd(windows)
0
votes
0answers
72 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 ...
1
vote
1answer
83 views

Bad symbols on my eclipse C++ installation

http://stackoverflow.com/questions/9131763/eclipse-cdt-c11-c0x-support I come from that website. I have a C++ project that compiles with g++-4.8 without problems. I just wanted to use std::int8_t ...
1
vote
1answer
408 views

CodeBlock c++ problem: Procces returned 126 (0x7E)

I'm having a problem with CodeBlocks. I can't run any C++ code and every time i try, I get the following error in terminal Process returned 126 (0x7E)` I googled it and found this link: ...
1
vote
0answers
39 views

Develop apps for Ubuntu touch: Learning by doing [duplicate]

I really want to develop apps for Ubuntu touch. I have set up the Ubunut sdk and i am currently reading tutorials about qml but one will not learn programming by reading books or tutorials so i am ...
0
votes
1answer
245 views

ImageMagick linking error with libfpx.so: undefined reference to

I was trying to add support for the FlashPIX format in my own build of ImageMagick. In order to achieve this I downloaded the sources libfpx-1.3.1-3.tar.gz from the ImageMagick FTP server for ...
0
votes
0answers
53 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
1answer
426 views

Executing C++ program on Geany

I recently installed Kubuntu 12.04 LTS and I'm fairly new to Geany. I've used it on other computers but never installed it myself until now. Now, I have C++ code that I've run on other machines (also ...
2
votes
1answer
256 views

How to detect events like lock/unlock screen, enter/return suspend and monitor power off

I am wondering if there is any way to detect system wide events under linux such as: user un/locked session user logs in/out machine sent to suspend screensaver goes on and the monitor switches off ...
1
vote
1answer
160 views

c++ Programme compiled successfully but unable to run

I compiled the program using gpp it was done successfully but when I tried to run the program I got these errors:- I have included using namespace std; in 3'rd line harish@harish-Lenovo-G580:~$ gpp ...