C++ is a general-purpose programming language.

learn more… | top users | synonyms

1
vote
0answers
88 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
336 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
71 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
122 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
1answer
299 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 ...
1
vote
1answer
10k 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.
3
votes
1answer
2k 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
131 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
3k 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)
1
vote
1answer
223 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
959 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
43 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
335 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
1answer
679 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 ...
4
votes
2answers
355 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
259 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 ...
-3
votes
3answers
374 views

C++ Passing by Reference Programming [closed]

Write a C++ program that incorporates two user-defined functions using parameter passing and performs addition and subtraction of two numbers. Both the input and output are carried in the main ...
2
votes
0answers
1k 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
1answer
191 views

Which package to install to use C/C++ compiler with Eclipse

I want to develop C/C++ applications using Eclipse: should I install using sudo apt-get install build-essential or sudo apt-get install gcc
0
votes
1answer
177 views

how to change directory to a local drive ..in terminal?

i am a new Linux Ubuntu user. I want to save my c++ programs in a local drive. I know how to change directory and mkdir in terminal but i don't know how to switch local drives.
-1
votes
1answer
350 views

List containing functions used in C/C++ for Ubuntu's GCC/CC? [closed]

I'm new to programming. What I want is to know as much about programming as I possibly can, and start off with what people say is a good start: programming with C. I have this PDF called "Teach ...
-1
votes
1answer
188 views

Ubuntu terminal commands and usage [closed]

I just got Ubuntu 12.04 yesterday and would like to learn how to use the terminal. The reason why is because I'm a developer and I'm trying to get any applications I develop supported on linux. From ...
0
votes
1answer
497 views

finding amount of memory usage of a command in bash

I wrote a program and now I need to measure it's performance so I use time to find timings but is there any command like time that I could run my program under it and have the amount of memory used by ...
-1
votes
2answers
327 views

compiling a c++ program

I tried to compile a cpp program through the terminal on 13.04 but got this message: npg@NPG-ideaPad-S210:~$ gcc -o comp-LCG.cpp The program 'gcc' can be found in the following packages: * gcc * ...
0
votes
2answers
197 views

PASCAL/FORTRAN/C++ compilers

I am retired and having some time on my hands, got out my old DATA STRUCTURES textbooks from the 80s. I got to thinking how much I would like to revive my skills in PASCAL/C++ and use the techniques ...
1
vote
0answers
375 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
1answer
53 views

C++ programs do not get focus when started from launcher in Xubuntu 3.10

My c++ programs run fine in a terminal on Xubuntu 3.10. But when they are started from a launcher, then they do not have the focus. The focus remains with the desktop. These programs use the ...
0
votes
1answer
831 views

Installing libmysql on Ubuntu Server 12.04

I really need help installing the dependency of this, which is libmysql (here) I really have no idea how to install it. The author requires me to put it in a specific directory, but I have had no ...
0
votes
1answer
2k views

How to correctly install libstdc++.so

It seems that no matter how I try, I am unable to install libstdc++.so. My guess is that this is supposed to be a symlink to libstdc++.so.VERSION or something. BUT, no package seems to be ...
0
votes
1answer
111 views

Where are the compiled SDL libraries?

I compiled the SDL 2 libraries as described here What is the general procedure to install development libraries in Ubuntu? What I would like to know, is where are these libraries actually located ...
7
votes
1answer
3k views

Setting up GDB pretty printing in Ubuntu 13.10

I tried to set up GDB pretty printing (for easier work with standard containers) according to this anwer. Instead of using python pretty printers code from svn I used the ones that ship with ubuntu. ...
3
votes
3answers
742 views

Unistall Eclipse installed in /opt

I need Java Eclipse, but accidentally installed the C++ one using the steps from here Installing Eclipse Kepler and Java JDK How do I actually remove the C++ one completely? I tried just removing the ...
1
vote
2answers
5k views

G++ compilation error “cc1plus” not found

I think I accidentally deleted a couple files from my machine, and now G++ won't compile. I tried to apt-get remove it then apt-get install it to see if it would fix it, but it didn't work. Now I have ...
1
vote
2answers
242 views

Setting a hotkey for connecting and disconnecting a network connection in KDE environment

Is there a way to set a hotkey for toggling connection through a network cable: Also if I have a command in command-line that can do this or a piece of C++ code that does this I can set a hotkey ...
0
votes
1answer
7k views

g++ (4.6.1) does not recognize -std=c++11 [closed]

I'm trying to compiling a program (via Make) using g++ 4.6.1 with flag -std=c++11. It's giving me: cc1plus: error: unrecognized command line option ‘-std=c++11’ This is running on Ubuntu 11.04 ...
1
vote
0answers
295 views

How to build and run Concorde and Traveling Salesman Problem? [closed]

I need to use a library that is called Concorde to solve a well known problem called Traveling Salesman Problem. This library is available here I've downloaded and compiled it resulting in two main ...
0
votes
1answer
8k views

which is the best c++ IDE for ubuntu? [duplicate]

Is there a c++ Integrated Development Environment(IDE) for Ubuntu. I want a IDE similar to turbo c++ in windows.
1
vote
1answer
1k views

How do I use the GTK+ development libraries in Ubuntu?

I've been programming for about a year and a half on Windows and I've just started getting used to the way things work on that platform, but now I'm interested in development on Linux and I've been ...
10
votes
1answer
441 views

Howto create a new C++ based Ubuntu touch project in Ubuntu SDK?

There is no option to start a C++ and QML based project in Ubuntu SDK. It only offers to create a QML project with no C++ codes. If I try to add C++ classes to the QML project, I get this error: ...
0
votes
3answers
3k 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
765 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
603 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). ...
1
vote
1answer
97 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
211 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
57 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
459 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
146 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
414 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", ...
3
votes
1answer
8k 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
392 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 ...