C++ is a general-purpose programming language.

learn more… | top users | synonyms

0
votes
1answer
17 views

Where to learn qt c++

can some one tell me, where i can learn / find some good tutorials about qt 5.4 c++?? so i can make program's for Ubuntu-Touch I've tied to look at http://wwww.developer.ubuntu.com, at ...
0
votes
0answers
22 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
18 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 ...
-1
votes
1answer
18 views

start working opengl using c++ on netbeans [on hold]

im trying to start programming opengl using c++ on netbeans , i found a plugin that it lets me to code using java , it works fine , but i need it with c++ , when i wrote the code which it : #include ...
0
votes
0answers
11 views

using sctp_recvmsg is the best? How?

I have just started with sctp and wrote my first program with it. I chose one-to-many communication style. Mainly I did things according to RFC 6458. (I used other source as well, but mainly I was ...
0
votes
0answers
14 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 ...
-5
votes
0answers
25 views

Process terminated with status -1073741510 with Code::Blocks 13.12 on windows 7; while working on glut project [on hold]

I am currently using Code::Blocks 13.12 on windows 7 and while working on glut project with given example main CPP it tries to process; a windows appears and suddenly it says "Windows has stopped ...
0
votes
1answer
36 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
21 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
17 views

broken g++ 4.8 when using thread [closed]

when I try to use threads with in my code I get this: /usr/include/c++/4.8/thread:276:18: error: expected type-specifier static_cast<std::time_t>(__s.count()), ^ ...
0
votes
0answers
21 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
2answers
64 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
19 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 ...
0
votes
0answers
33 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
0
votes
0answers
20 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
0answers
51 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 ...
1
vote
2answers
35 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
24 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. ...
0
votes
0answers
25 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
2answers
50 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
1answer
123 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
33 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 ...
2
votes
0answers
48 views

Ubuntu Touch App with Simple UI (QMake) - how to connect C++ to QML

I've noticed that the Ubuntu SDK now has a template for an 'App with Simple UI (QMake)'. This creates a C++ Ubuntu application project with a sample UI containing a Label and a Button (Needs a 15.04 ...
0
votes
1answer
112 views

Ubuntu freezes in recursion g++

Im using Ubuntu 14.04 and gcc version 4.8.2. Sometimes when I run some C++ code which has some bugs, for example Runtime Error, it goes to a deep recursion (I suppose...) and all my computer freezes. ...
0
votes
1answer
51 views

How to interface with Nexus 4 sensors in Ubuntu Touch through C++ program?

I'm developing a C++ program on Ubuntu Touch (Nexus 4, no GUI) and I would like to read some accelerometer values in. I was hoping I could just include a library and call a function that would return ...
0
votes
1answer
56 views

How I know what version of clang I have installed?

How I know what version of clang I have installed ?
0
votes
1answer
50 views

Why does my QQuick application crash on Ubuntu 14.04?

Basically I have (The Game class just wraps QGuiApplication): int Game::run() { QQuickView * mMainView = new QQuickView; mMainView->setResizeMode(QQuickView::SizeRootObjectToView); ...
1
vote
1answer
69 views

Build Celestia on Ubuntu 14.04

I'd like to build Celestia-1.6.1 on my Ubuntu 14.04 machine however, it seems that I can't do that easily with the gcc version 4.9.1. I'm using source files from ...
0
votes
1answer
255 views

Unable to run g++ after upgrading to Ubuntu 14.10

I did the update from Ubuntu 14.04 to Ubuntu 14.10 yesterday. Today I tried to run g++-4.8 as I normally do, but I have the following error: make: g++-4.8: Command not found I have the same error ...
0
votes
0answers
32 views

file not found when trying to run code in codeblocks

When I go to run a program xterm comes up and it has "sh: 1: [address of file]/bin/Debug/[file name]: not found. Before I ran the program it says "It seems that this project has not been built yet. ...
1
vote
1answer
52 views

Touch App with QML Extension Library does not run on device or emulator, only desktop

I'm trying to create a QML app with a C++ backend using the Ubuntu SDK (Qt Creator). There is a template called 'App with QML Extension Library' When I run this using the Desktop kit it compiles and ...
0
votes
0answers
12 views

Using C++ in Ubuntu [duplicate]

I'm new to Ubuntu and and want to know how to run and compile programs in C++ Can i get a step by step detail please? I did try once but got only a blank thing nothing else i really want to use this ...
0
votes
0answers
73 views

Problem - gnuplot not showing the graph window

I try to draw graph using gnuplot. I read this guide.I aompile and run below code without error but gnuplot is not showing the graph. I compile with gcc -o plot plot.c -lplot -lXaw -lXmu -lXt -lXext ...
0
votes
1answer
40 views

some libraries are missing in 14.04

I want to install MySQL Workbench Community,but in terminal when I attempt to install It always says to me libnetcdf6 is missing and gives error. I tried to find this but It is just available on ...
0
votes
0answers
339 views

Can't compile C++ in Code::Blocks

I have some trouble with compiling c++ code from **Code::Blocks* IDE on Ubuntu. When I save the code as a .cpp data and click on Run under Build it says: "Target uses an invalid compiler; run ...
3
votes
3answers
576 views

How to deploy: ubuntu | apache | python | C++ | mysql [closed]

What if you want to make a non trivial web site and/or web service? How to deploy production server Apache with python for frontend and C++ for backend and MySQL for persistance? What glue should ...
0
votes
0answers
30 views

Building and hosting Ubuntu packages using C++11

The full question would be: Is Ubuntu ready to host C++ applications packages, compiled with C++11, and which use a large set of dependencies? Let's say that we have an official Ubuntu package (C++ ...
0
votes
4answers
323 views

First Time To Run C++ Program on Ubuntu 14.04

What is the command to run the following simple C++ program? #include <iostream> using namespace std; // main () is where program execution begins int main() { cout << "Hello World"; ...
0
votes
0answers
38 views

Signal called on user logout

I would like to ask what is the signal that is called when the user logs out? I have a Qt gui app that has handler for SIGTERM and SIGHUP signals. The app also has its own close event handler, so user ...
0
votes
2answers
149 views

Accidently deleted header files in /usr/include/c++

I accidently deleted the folder with all the C++ header files that resides in /usr/include/c++. What do I do to recover the UPDATE I did get the header files back now in /usr/include/c++. However, ...
0
votes
0answers
52 views

how to make gcc search for headers in all subdirectories?

I'm new to Linux so please excuse me for my noobish question. I've installed libraries (PCL) which save their headers under usr/include as it should be. However, the problem is that an example of the ...
0
votes
0answers
184 views

Unable to compile C++ Code

Whenever I try to compile a C++ file with IOStream , I get this error.. I've tried reinstalling GCC G++ (both 4.6 and 4.9) AND cpp.. It hasnt helped (or maybe I didnt do it the right way). How do I ...
0
votes
0answers
33 views

How do I implement multiple keymaps into a kernel?

my problem is as follows: I have a custom-made kernel that has no functionality in regards of changing the keyboard mapping. It is possible to compile a different keymap into it, but that's it. The ...
0
votes
0answers
35 views

libstdc++: man std::sort or man std::algorithm failed

I have downloaded libstdc++-api.20140403.man.tar.bz2 from ftp://gcc.gnu.org/pub/gcc/libstdc++/doxygen/ and installed it. man std::vector is ok, while man std::sort and man std::algorithm both failed, ...
0
votes
1answer
120 views

/usr/lib/i386-linux-gnu/libmysqlclient.so.18: no version information available

I wrote a program in C++ (QtCreator) on Ubuntu 14.04 LTS which reads values from Web-API's (curl) and stores them in a MySQL Database (using the MySQL C-API). When I start the program on my Desktiop ...
0
votes
0answers
106 views

eclips luna c/c++ on ubuntu 14.04

I have installed Eclips Luna for Linux but when I run a simple program a window is shown Launch failed .Binary not found I have tried two methods 1) Windows > Preferences > C/C++ > New CDT project ...
0
votes
1answer
62 views

Executable not created upon compilation using Dev C++ on Wine [closed]

I recently installed Wine so that I could run and use Windows applications in an Ubuntu environment. However, after I installed Dev-C++ version 5.4.1 , I found that I could write and compile programs ...
0
votes
0answers
10 views

libraries for c++ development [duplicate]

I am a student and switched form windows to linux just a few months ago. I don't know anything about the paths and libraries in linux. Now I need to work on c++. I need an IDE and compiler that can ...
0
votes
0answers
64 views

Starting with SDL

Hy, i want to start learning/developing with the SDL library. I already found some usefull tutorials like lazyfoo.net. There I noticed there are many ways to use SDL (Console, IDE, ...). So can you ...