C++ is a general-purpose programming language.

learn more… | top users | synonyms

2
votes
1answer
191 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
138 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
294 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
169 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
295 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
522 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
252 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
62 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
100 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
598 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
572 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
481 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
1k 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
749 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
284 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
1k 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 ...
1
vote
1answer
5k 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
451 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
304 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
642 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
132 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
510 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 ...
1
vote
4answers
2k views

Is there anyway to Compile Notepad++ from Source?

I really like using Notepad++ to write HTML and such. After I started using Ubuntu I looked around for an alternative to Notpad++. I found a thread which lead me to try Geany and a few others, but I ...
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
319 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 ...
1
vote
0answers
195 views

jQuery in Doxygen generated API documentation

I am using Doxygen on Ubuntu 12.10 to generate API documentation for a C++ library and demon. This works fine with one issue, I can not seem to resolve. Doxygen uses jQuery in the generated files to ...
0
votes
1answer
570 views

Howto get the number of available updates/security-updates in ubuntu server

I'm writing a small daemon in c/c++ and I need to get the number of updates available and how many of them are security updates. So far I know I could use either update-notifier or nagios but just for ...
7
votes
3answers
2k views

What do I need to start programming? [closed]

I am a brand new engineering student, my teacher told us that we need to program in C++, I am new to programming and to Ubuntu, I am installing the latest version of Ubuntu but I would like to know ...
3
votes
2answers
245 views

Is there any ubuntu API?

in Windows, a programmer can use Windows API to write a Windows application. Windows API can be used with C (not necessarily C++). In Windows API you have a message loop and you have to program ...
6
votes
1answer
2k views

Where to install libraries manually?

I want to install SFML (a free multimedia C++ API) on my Ubuntu system, which basically isn't a problem. But I wanted to know where I should store the files. I can see, that Ubuntu stores my C++ ...
2
votes
1answer
104 views

How to write rtf on ubuntu?

I have a program to read and write rtf, doc, docx, pdf,... file. So, do you know the lib or program to process these files, especially rtf.
1
vote
0answers
57 views

After upgrading packages today, can't compile anything that includes <locale>

I just updated my packages today on Ubuntu 12.04 amd64, including libc-bin which provides /usr/bin/locale, and now any C/C++ program that has #include <locale> explodes hundreds of errors ...
1
vote
3answers
6k views

Eclipse not creating a binary file when building a simple program

I have a problem with linking and\or running a simple program in my eclipse. I'll try to first give a full description of the setup I'm using, to help identify the problem. Please notice that this is ...
0
votes
1answer
168 views

C++ Application on Kubuntu

Im looking to develop myself an application for my KUbuntu machine. Basically a tool kit for stuff I use all the time. I have looked at the QT framework but cant find any really good guides for it ...
0
votes
1answer
2k views

OpenCV program won't compile (Quantal)

I am trying to compile a simple program using OpenCV in Ubuntu Quantal. I have installed all the OpenCV packages available. My code is the following #include <stdio.h> #include ...
0
votes
0answers
65 views

Is there a C/C++ compiler for Ubuntu? [duplicate]

Possible Duplicate: Can I use a C/C++ compiler? Is there a good C/C++ compiler out there for Ubuntu? I'm going to be learning C soon and would like to know if I should just use windows for ...
0
votes
3answers
2k views

Using Visual Studio for Ubuntu? [duplicate]

Possible Duplicate: What IDEs are available for Ubuntu? I would like to make programs in C++ for Ubuntu and Windows. I will be using visual studio on a Windows PC for the programming. I ...
7
votes
1answer
7k views

How to make Eclipse CDT's Linux GCC toolchain resolve C++ standard library headers?

In Ubuntu 12.04 LTS I installed the Eclipse CDT plugin and opened the new hello world project to just test everything out. When I was creating the project, I chose the only toolchain: "Linux GCC" ...
5
votes
1answer
319 views

What language C++, Python, or Java is most supported in Precise Pangolin for game development?

I've studied game programming and design in Windows using DirectX, and a bit using Python and PyGame. I would like to start developing some games for Ubuntu. Now I would like to build a game called ...
0
votes
1answer
4k views

gcc compiling error for c++ program

When I'm trying to compile a C++ program with gcc, it gives me following error: gcc: error trying to exec 'cc1plus': execvp: No such file or directory error: command 'gcc' failed with exit status 1
0
votes
2answers
214 views

Why does qt-creator need to connect to google-analytics?

I just installed qt-creator to work on non-qt C++ projects. The installed version is 2.5.0 (Based on Qt 4.8.2 32-bit) If I click on any of these pages: I get this error: I realized that ...
3
votes
1answer
221 views

C++ programming - Is there a way to make gedit recognize new classes?

I'm C++ programming in ubuntu 12.04 using gedit and it recognizes c++ default commands. I was wondering if I can make it able to recognize the new classes I define and change their color in the code ...
0
votes
1answer
5k views

How to fix a “/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found” error?

I've been getting this annoying problem. I want to compile a .so under Ubuntu using the Anjuta IDE. It compiles fine and all, but when I load it, that's when the error comes up: ...
2
votes
5answers
942 views

How can I run Turbo C++?

How can I use Windows apps like Turbo C++ on Ubuntu? Wine says "not applicable on your PC", or something like that. I need to specifically use Turbo C++ on Ubuntu for my coursework.