C++ is a general-purpose programming language.

learn more… | top users | synonyms

5
votes
3answers
22k 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
22 views

OpenCL on Ubuntu 14.04

I am running Ubuntu Gnome 14.04 with a nvidia GTX 760 and I want to start working with OpenCL and C++. I installed the CUDA Toolkit 7.0 for Ubuntu 64Bit version and the current nvidia driver, but the ...
0
votes
1answer
26 views

Issues finding the location of package: libsdl2-image-2.0-0

Recently I've been playing around with the SDL library and wanted to start using libsdl2-image-2.0-0 along with SDL. I have been trying to get this working with Ubuntu 15.04. I have installed the ...
1
vote
1answer
23 views

misunderstanding cmake's part in including library

I have been trying to include this pokerstove library so I could actually include these header files in my simple program so I could calculate some poker hand equities. So far its not going great ...
1
vote
1answer
14 views

Unable to use included library -> pokerstove in ubuntu 14.04

guys! I just included this pokerstove library with help of good instructions and with help of this website and its users I ran all commands in my home directory which is ...
1
vote
1answer
26 views

Getting C++ library to work on ubuntu 14.04

I'm trying to make this pokerstove library to work so it could be included and used in a simple .cpp file opened by simple text editor and compiled in terminal using g++ -o my_prog my_cpp.cpp ...
1
vote
3answers
1k views

Error while installing tiff-4.0.3

I get the following errors while installing tiff-4.0.3: pranav@pranav-Inspiron-1545:~$ cd dependency/ pranav@pranav-Inspiron-1545:~/dependency$ tar -xvf libtiff4-3.6.0-5.tar.bz2 usr/bin/cygtiff4.dll ...
0
votes
1answer
23 views

qtserialport in c++ app ubuntu

Can someone please tell me how to install the qtserialport to use in a c++ project in ubuntu? Thanks.
0
votes
0answers
61 views

Raspberry Pi C++11 std::thread: pure virtual method called

Ubuntu 14.04. I've installed gcc-arm-linux-gnueabihf, g++-arm-linux-gnueabihf (tried 4.8 and 4.9 from utopic). Code that uses std::thread: #include <iostream> #include <chrono> #include ...
3
votes
3answers
105 views

Can I call a .cpp program in Bash?

I am new in Bash programming. I want to call my C++ program in Bash file. My program is myProg.cpp: #include<iostream> using namespace std; int main() { cout<<"Salam! ...
0
votes
0answers
45 views

Connecting to Arduino via USB from C++

I am trying to send information to an Arduino from a C++ file, however I am receiving segmentation errors when I run the program. It compiles fine but when it is run the first line of the code doesn't ...
-2
votes
0answers
25 views

g++ fatal error when called in terminal

when i type g++ I get the fatal error: no input files . I'm trying to program in c/c++ and want to use Sublime Text with it. Should I just install another IDE or something to get this to work?
2
votes
2answers
63 views

QML app with C++ plugin (cmake) adding resource file

How to add qrc file to "QML app with C++ plugin (cmake)" project ? I can't find a working instruction. I found only one thing, add this to CMakeLists.txt: qt5_add_resources(RESOURCES ...
1
vote
0answers
26 views

Ncurses problem

I try to make my first program which use ncurses. The problem is that screen got clean when it meet first time ch = getch(); # include "sys/ioctl.h" # include "ncurses.h" # include "unistd.h" ...
0
votes
1answer
14k views

Compiling C++ code raising “no input files” fatal error?

I am finding it hard to run/compile a simple C++ code in the terminal. Here's the code I am using to compile the file (helloworld.cpp). g++ helloworld.cpp -o helloworld I am getting an error. ...
2
votes
1answer
28 views

Running C++ executable file using nautilus

Although this may be a programming issue, I figured it would be more appropriate here. My issue is that when I compile my program (using Code::Blocks if it's important), I get a nice (SFML) window and ...
2
votes
2answers
74 views

Cannot run QML App with C++ plugin

I'm trying to extend a QML App with C++ functionality. Basically I want to make the MythMote app which is available on Android available on Ubuntu Touch. Also see my other question for which I would ...
1
vote
1answer
65 views

QML app with C++ plugin (cmake) subdirectory

I am developing an Ubuntu Phone application "QML app with C++ plugin (cmake)" but I have so many qml files so I want to separate them by functionality ApplicationName CMakeListes.txt .. app ...
1
vote
1answer
60 views

How to run C program on 14.04?

I'm trying to run some C programs using Geany and Code::Blocks. After coding them, when I run them, a message is showed in the terminal like this: In Code::Blocks: sh: 1: /home/c program files/2: ...
0
votes
1answer
44 views

how to build simple program run from terminal in ubuntu [duplicate]

I'm writing simple program in c++ using netbeans. I want it should be executable thru ubuntu terminal as other do like "php samel.php" it works I want something like this please guide me how to do ...
-2
votes
1answer
60 views

How to configure netbeans 8.0.2 for C++ in ubuntu 14.04?

I am new to programming, netbeans and ubuntu. I have installed the netbeans ide with the c/c++ bundle from https://netbeans.org/downloads/ . I have no idea what else to install. Please help me in ...
0
votes
0answers
20 views

How to create a installer package of my software made in Code Blocks

I am an amateur developer, I'm using Ubuntu for like 1 month or so and I want to know how can I create an installer package form my Code Blocks C++ generated release file..
0
votes
0answers
41 views

Creating new frame in wxwidgets using codeblocks

Good day to all, I am a beginner in coding wxwidgets using codeblocks in Ubuntu. I have a main frame which contains a button which would create a new frame.My main frame is called TemplateFrame and ...
0
votes
0answers
24 views

Error that says my compiled code doesn't exist? [duplicate]

I am setting up ubuntu to program C++, did that with gedit with terminal plugin etc, but whenever I am compiling a simple program to only output Hello World, I cannot run the program with the command ...
0
votes
1answer
75 views

LAPACK installation along with lapack-devel and lapack-dev

I wanted to have a complete installation of the La-pack on my Ubuntu 14.04. So, I made the following installation commands on my system: sudo apt-get install libblas-dev checkinstall sudo apt-get ...
0
votes
0answers
23 views

Programming in Linux [duplicate]

so I've never used Linux as a programmer I code C++ in Windows(I am newbie) and today I installed Code::Blocks.I opened some of my projects from Windows but Code::Blocks can't include some of the ...
-1
votes
1answer
101 views

Disable auto sleep and monitor turning off from C++ code

I develop [cross-platform C++ Qt-based] application which plays video using libVLC. When i watch video for a long time, my monitor is going to turn off according with power management settings. I want ...
0
votes
1answer
30 views

Trouble Running C++ Executable from Desktop

I created a basic Hello World program in c++: #include <iostream> #include <string> int main(){ std::cout << "Hello World!\n"; return 0; } And compiled it with g++ gui.cpp ...
0
votes
0answers
82 views

Just installed mysql c++ connector, 'undefine reference to 'get_driver_instance'

This is frustrating I've followed everything from the official mysql connector c++ website. I downloaded the binaries for 64 bit, opened it with archiver. It extracted into a folder 'usr' and had an ...
0
votes
1answer
47 views

Why are my ubuntu partitions mounted somewhere else?

If you refer to my other posts, I am trying to use g++ and in order to compile a .cpp file I'll have to refer to it with the drive name: g++ /media/drivename/filename.cpp The problem is with the ...
-1
votes
1answer
95 views

I'm having some trouble compiling code in Sublime Text 3

Previously, i had been using the "g++ a.cpp" and "./a.out" commands in terminal to get my programs compiled and runnable, but if i save a .cpp in sublime, it won't update the a.out save, so compiling ...
0
votes
0answers
40 views

How to add libxml2 to a Makefile?

While compiling a C++ tool called BioC I encountered a problem with the libxml header. In my attempt to solve it I downloaded libxml2-2.9.2 and compiled it in '/usr/local/lib/'. Then I studied the ...
0
votes
1answer
125 views

No option for C++ in Qt Creator (for project)

I've installed the Qt 5.4.0 for Linux 64-bit (542 MB) on gnome ubuntu 14.04, When I started new project, I couldn't find the "Qt C++ Application" tab. There is option for C,QT,BLACKBERY....... But no ...
0
votes
2answers
51 views

Compile C++ 11 with clang 3.4 and GraphicsMagick

I wanna to compile C++ code in this source https://github.com/jdeng/rbm-mnist I have installed clang 3.4, sudo apt-get install libmagickwand-dev, sudo apt-get install build-essential , and sudo ...
14
votes
5answers
132k views

What is a command to compile and run C++ programs?

I am new to Linux. I am using Ubuntu 11.04 and do not know how to compile and execute C++ program in it. I need to know the commands to Compile and Execute a C++ program in Linux.
0
votes
0answers
85 views

Unable to init SDL: No available video device

i am trying to execute graphics program bt there is msg on terminal "Unable to init SDL: No available video device " when execute the c++ graphics program
4
votes
1answer
130 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
0answers
36 views

Error running .exe compiled with i586-mingw32msvc-g++ and SFML

So well, I'm fighting with WINE and MinGW32 right now. So I have a file, sortem.cpp which is compiled with a Makefile and linked and all from that Makefile. sortem.cpp #include <windows.h> ...
0
votes
1answer
253 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
88 views

Boost Mutex try_lock Assertion failed on my machine

I want to use a Boost Mutex to protect a software component. In one method I use a boost::lock_guard and it works great. In another method I can't use the lock_guard because I need the non-blocking ...
0
votes
1answer
16k views

“configure: error: C++ preprocessor ”/lib/cpp“ fails sanity check”

apcoer@apcoer-Aspire-Series:~$ cd Desktop apcoer@apcoer-Aspire-Series:~/Desktop$ cd libgraph-1.0.2 apcoer@apcoer-Aspire-Series:~/Desktop/libgraph-1.0.2$ ./configure checking build system type... ...
1
vote
2answers
48 views

Install eclipse for java

I have eclipse kepler cdt for c++ but I want to download eclipse for java and keep eclipse cdt I mean use eclipse for both Java and c++
0
votes
0answers
51 views

makefile: how to perform “ranlib” operation correctly

I downloaded a third party lib( Library link) which installs and compiles properly. It creates multiple object file (*.o), rather than creating executable, it's using gnu libtool to do some scripting. ...
4
votes
2answers
339 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 ...
0
votes
2answers
71 views

Missing readline library when using make

I'm trying to compile ncmpcpp, and when I get to issuing the make command I get several errors such as: /home/[myname]/ncmpcpp/src/window.cpp:329: undefined reference to `rl_bind_key' ...
0
votes
0answers
45 views

build error with ubuntu netbean

"/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf make[1]: Entering directory '/home/syj/Desktop/A1Start' "/usr/bin/make" -f nbproject/Makefile-Debug.mk ...
0
votes
1answer
244 views

Having trouble linking QML button to C++ class

First time using Ubuntu SDK and QML. I've spent the entire day attempting to figure this out but every solution that i came accross is either outdated or not well documented. I'm trying to figure out ...
0
votes
1answer
55 views

Do I need to install libcurl source package to use it for development?

I am working on a project that I used to use in a Windows environment. I recently migrated to KUbuntu and installed everything I needed (Qt, QtCreator and libcurl). However, after installing libcurl, ...
0
votes
0answers
13 views

Mapping a music file to a discrete 2D domain/2-D array in Ubuntu

I wish to take music file as an input. The output should be a scalar field on a 2D domain or a Vector field on a 2D domain, which I can store as an array. We have seen mapping of music to a 2D domain ...
1
vote
2answers
181 views

Unendable question C or C++ [closed]

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 ...