C++ is a general-purpose programming language.

learn more… | top users | synonyms

0
votes
1answer
974 views

Dell Inspiron 15 5559 hangs at shutdown, wierd start ups

I just bought a new Dell machine. It's awesome! It has a 6th Gen Intel i5, Radeon M335 (4gb ddr3), 8gb of ram< win 10. Nothing special, but still quite good. Anyways I wanted to install Ubuntu on ...
0
votes
1answer
302 views

C++ header files for HDF5 are missing

I am trying to compile a C++ program using g++ which uses the H5Cpp.h header file. g++ is producing a fatal error saying: fatal error: H5Cpp.h: No such file or directory I have already installed ...
2
votes
2answers
264 views

/usr/bin/ld: cannot find -lX11

https://github.com/laazyboy13/linux-csgo-external/issues/6 How do I get it to find libx11-dev? william@william-elementarylinux:~/csgohack$ make Linking CXX executable build/csgo_external /usr/bin/ld: ...
0
votes
1answer
82 views

How to write a C++ backend for Ubuntu Touch that can access internet?

Is there anyway to write a C++ backend for an Ubuntu Touch application that can access the internet, and download files? Or do I have to do that through QML, and pass it to objects written in C++?
1
vote
1answer
56 views

QML dynamic scoping not working (ReferenceError)

I am trying to reproduce the example here where the TitlePage.qml component creates two TitleText instances even though the TitleText type is in a separate file (under Section: Component Instance ...
0
votes
1answer
47 views

program in not running completely

I have written a program to count no of cars from the captured video. I have installed opencv and cvblob, raspbian wheezy OS on raspberry pi 2. The problem I am facing is "During run time the program ...
2
votes
1answer
68 views

List Installed Program Using C/C++ [closed]

I need to complete a short audit program written in C / C ++, which list the programs / apps installed on machines running Ubuntu, at first I could accomplish the task using "system (" dpkg -l> / tmp ...
0
votes
1answer
47 views

Can't use g++ compiler

I tried to do this: $ g++ The program 'g++' is currently not installed. You can install it by typing: sudo apt-get install g++ $ sudo apt-get install g++ [sudo] password for user: Reading package ...
0
votes
0answers
64 views

After update my system from 15.04 to 15.10, I can't use c++ standard library with vector include method. Why?

When I updated to 15.10, my eclipse CDT IDE can't use the some of the C++ library anymore. But it works OK before updated which the version is 15.04 ubuntu kylin. When I use the words: include or ...
1
vote
2answers
63 views

IDE that can use remote server (which can only be connected to by VPN) to save and compile C/C++ code

Here is the predicament that I am in now. For one of my classes, we need to make sure our code works on the school's Red Hat server. I had problems with dual booting Ubuntu and Windows 10 on my ...
1
vote
1answer
326 views

Exec format error of gcc-compiled Hello World c++

I know there are many similar questions with this error message here. But I cannot find any solution yet. On AWS ubuntu server, I wrote c++ Hello, World program #include <iostream> using ...
1
vote
1answer
91 views

Multiple versions of gcc / g++ affects

I have a fairly simple question, and yet couldn't find an answer anywhere I looked. In my workplace there is a CI server with ubuntu 12.04 installed, that server uses the default c/c++ binaries ( ...
0
votes
0answers
31 views

Multiple Eclipse Mars environments

I do structure my projects in the following way: project_name ----- app ----- projectcpp1 (C++) | | | ---- projectcpp2 (C++) | | ...
1
vote
1answer
2k views

Install Eclipse Mars PHP and C++ on Ubuntu 15.10

I´m building a new development machine and I need to setup Eclipse for C++ and PHP projects. I´ve installed Ubuntu 15.10 and I started installing Eclipse Mars (4.5). I choosed to use the new Eclipse ...
3
votes
1answer
5k views

Platform not supported for Tensorflow on Ubuntu 14.04.2

Tensorflow is a numerical computation software http://tensorflow.org/get_started/os_setup.md#binary_installation The installation instruction says to simply pip install on Ubuntu but I'm getting the ...
0
votes
1answer
705 views

C++ 'Hello World' with Codelite-iostream not found

I appreciate any help with this, as I am relatively new to both Linux and coding in general. I am comfortable using bash commands and have been playing with Linux for a little over a year, but please ...
0
votes
0answers
44 views

how to Create Threads using Pthread_Create recursively?

I would like to use pthread_create to create 8 threads recursively without the use of any loops like for or while loops. The created threads should execute a simple routine to print something or what ...
0
votes
1answer
139 views

how I can download and install C++ in Ubuntu? [duplicate]

I am a mechanical engineer and I have Ubuntu 14.04.3 LTS on my Laptop. I need to install C++ program. How I can do that ? Help me please
0
votes
1answer
219 views

How to compile c++ to Dll file in Ubuntu

Now I can compile successfully by using make file provided, now I want to compile the project to dll file, how should I modify the make file? The make file is: default: all # ...
0
votes
0answers
298 views

C++ - How to import GTK+ or Glade libraries to CLion? Ubuntu 15.04

So, I've trying to create a simple GUI code in CLion, but it looks harder than I thought. What I have been doing so far: #include <gtkmm-3.0/gtkmm> CLion can't predict any of the ...
3
votes
1answer
119 views

Making a bash script to build and run a C++ program

I'm trying to make a bash script to build and run a C++ program at once with one command, normally right now I have to do g++ file.cc -o file ./file < input.in I want to be able to do, say brun ...
2
votes
1answer
39 views

How to compile code without having the needed library 'installed' in your system?

In one of my projects in working with the SDL 2.0 libraries. My computer went kaput last night and at my uni my profile doesn't have sudo powers. Is there a way to compile and run my code without ...
0
votes
1answer
23 views

Not able launch Qt5 on ubuntu 14.04 multiple times.like we do in windows.right click and open another Qt5 application

recently I have installed Qt5 in my computer.I am not able to launch it multiple time.if I click on icon or if I right click and click open,it should give me separate another Qt5 application.but it ...
0
votes
0answers
128 views

C++ and regex using gcc 4.9.1

Good day, I'm trying to use regular expressions within my C++ program. The regular expression I use is simple and works as intended when I try it in an online debugger. The code: /* _token = ...
0
votes
0answers
67 views

process_vm_writev fails where process_vm_readv succeeded

I'm using process_vm_readv to read the contents of a function in a child process. This works fine. I then place breakpoints at certain places in the local copy of the function. Finally, I try to send ...
0
votes
1answer
187 views

Can't install libstdc++

I'm using Ubuntu 15.04, here what I've got: ... libstdc++6-4.9-dbg-arm64-cross : Conflicts: libstdc++6-4.8-dbg-arm64-cross but 4.8.4-1ubuntu15cross0.15 is to be installed ...
-1
votes
1answer
45 views

Error on running Grayscale using Opencl c++

I am new to OpenCL so I have been working on some simple OpenCL C++ programming. I have written a code on Gray scaling using OpenCL and OpenCV. It has been compiled properly, but on run it gives me ...
-1
votes
1answer
119 views

How to save variables for all pages in qml?

I am currently working on a game for Ubuntu touch. It is as good as finished, but one thing does not work: I have multiple pages using PageStack and want to have some variables which i can reach, ...
1
vote
3answers
886 views

Passing contents of file on the command line for c++ program [duplicate]

I have the following program (let's call it program.cc): int main() { int x, y, sum; std::cout << "A program which adds two integers\n"; std::cout << "Enter 1st integer: "; ...
3
votes
1answer
92 views

ubuntu phone questions, about libraries, ubuntu-sdk, and QML

I'm trying to make an app for Ubuntu phone but I've lots of questions. If my app depends from a library as qxmpp, what is better? Add a local copy of the library with my app, or use the system ...
0
votes
1answer
31 views

A problem which I encountered in Eclipse [closed]

I have written a simple code in Eclipse/C Project as below: #include <stdio.h> typedef struct list { int data; struct list *next; }; list Listptr; int findTheSmallest() { } int ...
1
vote
0answers
79 views

How to cross compile to an old i486/i586 architecture (Vortex86DX)

I need to cross compile to Vortex86DX. It seens to have a i486/i586 architecure. What packages is needed to install on Ubuntu ? As stated here, just asking the compiler to -match=i586 doesn´t work ...
0
votes
1answer
43 views

When Running 64-bit File on 64-bit Lubuntu Receive message: cannot execute binary file: Exec format error

I am running Lubuntu 15.04 64-bit, and want to learn to code with SFML. I made a program just as a test: #include <SFML/Graphics.hpp> int main() { sf::RenderWindow ...
0
votes
0answers
36 views

Errors while compiling systemc-2.1.v1

I am installing systemc-2.1.v1 in order to run nirgam2.1; after running make I am getting these errors: ../../../../src/sysc/kernel/sc_process_int.cpp: In member function ‘virtual void ...
0
votes
1answer
41 views

How to install ubuntu c++ runtimes libraries

I need c++ runtimes libraries for ubuntu 12.04 but I don't know the package name. Can someone help me Manu thanks
2
votes
1answer
132 views

libarb.so & libflint.so.13: cannot open shared object file: No such file or directory

I installed arb and try to run this code: #include "arb.h" int main() { arb_t x; arb_init(x); arb_const_pi(x, 50 * 3.33); arb_printn(x, 50, 0); printf("\n"); printf("Computed ...
1
vote
1answer
41 views

meta/prefs.h: No such file or directory [closed]

I tried to a code derived from this code, but I got an error in QtCreator: error: meta/prefs.h: No such file or directory How can I solve the problem?
-1
votes
1answer
141 views

MPI Terminal Help manual..!

Is there is any possible way to get a developer manual help for the MPI commands in terminal. i tried mpi --help and mpich --help (because the mpi version command looks like mpich --version)but no ...
1
vote
1answer
2k views

How to Install boost on Ubuntu 14.04? [duplicate]

How to download boost in Ubuntu?
1
vote
0answers
64 views

How to install gtkglextmm in Ubuntu LTS 14.04?

Can you let me know the steps to install "gtkglextmm" in Ubuntu LTS 14.04? For learning experience, I am trying to compile basic examples from "gtkglextmm"? According to the "README" file from ...
16
votes
1answer
1k views

How to build a simple chat using netcat?

I am currently working on a project and I have implemented a simple chat application using the netcat libraries. The client is prompted to enter port number and the command nc -l -p xxxx where ...
0
votes
0answers
41 views

CGAL: make command gives many errors?

I have a project this semester as a part of which I have to run a code which uses CGAL lib on my system.The code was written by a senior on his system. I am using ubuntu 14.04 and 32 bit system (dual ...
0
votes
0answers
27 views

I want to install systemc2.2.1 on Ubuntu 14.0.4

Hi i am a newbie and want to install systemc2.2.1 on ubuntu. I have gcc 4.8 in my ubuntu but that does not support systemc2.2.1. Now kindly suggest me proper gcc for systemc2.2.1 and also suggest me ...
1
vote
1answer
49 views

Removing changes made to geany

Actually I am a newbie here and I installed geany IDE and made some changes to it like hiding the menu (using the full view ). Now I want to undo those changes but don't know how to do it. Can someone ...
0
votes
0answers
40 views

Compiling with java and C++ [duplicate]

I'm new to programming, i have experience in hmtl and php, also fortran, but not java and c++, i'm actually trying to learn android apps programming, so java and c++ are the basis. But how do i ...
1
vote
2answers
125 views

It's possible to develop ubuntu touch app in C++ without using QML?

I am looking for way to develop ubuntu touch app using only C/C++. I want to know what are other options, maybe GTK+ can be used ? or QT Widget ? without sacrificing display touch capabilities ? And ...
-1
votes
1answer
157 views

GCC compliler causing error of illegal refference for access noxim

I am trying to run access noxim (network simulation too) on my Ubunto 14 and concerning this source. https://github.com/habedi/SystemC-AccessNoxim I am using systemc2.3.1 for this purpose. Now i ...
0
votes
1answer
72 views

How can I get my terminals / shells to have custom designs in it?

How can I add fun stuff to my terminal so I have extra zazz for when I break every thing every day! :D I'm learning C / C++ and think root projects and custom terminals would be fun way to practice ...
0
votes
0answers
133 views

Is there any step by step instructions to make Eclipse Mars look and feel like Visual Studio for Ubuntu?

I have been using Visual Studio ever since Visual Studio 6.0 and I like the way the IDE is arranged. I love the dragging and dropping of controls onto the GUI and the event driven programming. ...
1
vote
3answers
413 views

Serial Port Debugging on Ubuntu

I have a written a C++ program on Ubuntu 14.04 LTS which communicates with a USB2Serial device /dev/ttyUSB0 . I want to know if the connection parameters are set correctly on this file handle, what ...