Questions tagged [c++]

C++ is a general-purpose programming language.

Filter by
Sorted by
Tagged with
0
votes
0answers
7 views

streaming video recording in ubuntu

my project consists in sending a streaming video from a server to a client, in order to evaluate the QoE I want to record the video perceived by the client in order to make the comparison between the ...
1
vote
1answer
27 views

Compiling files with mingw-w64

I have a program #include<iostream> #include<windows.h> using namespace std; int main() { cout<<"Hello World!! This Program Is made in win32 API\n"; return 0; } but when I ...
0
votes
0answers
17 views

Ninja Build and CMake fails on Ubuntu 18 and 20

I am trying to build a project with ninja but it doesn't work on either ubuntu 20 or 18. I tried to do it locally (18) and in Docker with 20 and 18. Following dependencies were installed in Docker: ...
1
vote
2answers
31 views

How to enable auto close bracket inside a bracket in GEANY editor

I like the geany text editor very much. However, one thing that I don't like is that while I code in C/C++, the auto-close bracket option does not work inside similar types of brackets. Here's an ...
0
votes
0answers
46 views

Opencv4 giving undefined reference errors with pkg-config

I have recently updated to ubuntu 20.04. The default OpenCV version is now 4.2 and it is giving a lot of compilation errors. Below is a sample program #include "opencv2/highgui/highgui.hpp" #include ...
2
votes
2answers
187 views

QtCreator not recognizing linked libraries after upgrading Ubuntu to 20.04

I've upgraded from Ubuntu 18.04 to 20.04 and besides some nasty grub issues most things worked out of the box. But my QtCreator (Qt Creator 4.11.0, Based on Qt 5.12.8 (GCC 9.3.0, 64 bit)) is facing ...
0
votes
0answers
42 views

From a fresh install of ubuntu 18.04, what version of the cuda-toolkit will allow me to use the thrust library?

I see on the nvidia documentation that thrust has been included with the cuda-toolkit for a while, but it simply does not work anymore. I am looking for instructions that will allow me to run the ...
-3
votes
0answers
22 views

How to run a c++ program [duplicate]

COMPILING & RUNNING C++ PROGRAM QUEUSTION I am new at programming and I use visual studio code on windows 10. I have downloaded a compiler (Mini GW) and when i try to compile my program in CMD I ...
0
votes
0answers
20 views

What does the following command do in Sublime Text build system?

I copied a Sublime Text custom build system for compiling and running a C and C++ codes on my Ubuntu machine. Every time I press Ctrl+B, the terminal opens, and I have to explicitly type in g++ "...
1
vote
0answers
42 views

How can I install multiple versions of llvm libc++ on the same computer at the same time (ubuntu)?

I've tried the obvious: apt-get install -y clang++-7 libc++abi-7-dev libc++-7-dev apt-get install -y clang++-8 libc++-8-dev libc++abi-8-dev apt-get install -y clang++-9 libc++-9-dev libc++abi-9-dev ...
0
votes
0answers
13 views

How to run program in ubuntu [duplicate]

I learning coding using C++ and I wonder how can I run it in ubuntu terminal. I tried using ./filename.cpp but it doesn't work with a message no such file or directory. Is there another way to run in ...
0
votes
0answers
9 views

Debugging a C++ program with Eclipse CDT crashes when Java Virtual Machine is instantiated with JNI

I am trying to develop and debug a C++ program using Eclipse CDT. The program uses java Native Interface (JNI). When JNI_CreateJavaVM() is called, the program crashes. If the program is run through ...
1
vote
0answers
40 views

g++ cannot find main function for simple “hello world” program

I have been trying to compile a simple hello world program in C++ on my lubuntu laptop. I use the command g++ -o out cta.cpp but I always get the error message below.. /usr/bin/ld: /usr/lib/gcc/...
0
votes
1answer
27 views

Is it possible to run a c++ code and send the output to a python code in a bash file? [closed]

I have a C++ code that uses NVIDIA DRIVEWORKS (CUDA) and extracts some images. I have a Python code that takes the extracted images and do processing. My question is that is it possible to run two ...
0
votes
0answers
57 views

MySQL/C++ connector configuration, missing endian.h and byteorder.h

I am trying to configure the MySQL/C++ connector on a Ubuntu 18.04 server (with cmake 3.10.2, g++ 7.5.0, OpenSSL 1.1.1) following these instructions: https://dev.mysql.com/doc/connector-cpp/8.0/en/...
0
votes
1answer
96 views

Java JNI call FindClass fails from a C++ program

I am trying to follow this tutorial which calls a Java class from a C++ program. A Java virtual machine is instantiated but the call to FindClass fails. The code sample is directly from the tutorial: ...
-1
votes
1answer
58 views

How to implement the curl --header in C++ (specifically for tdameritrade) [closed]

I recently started to write a C++ program to GET and POST data from/to tdameritrade through their api. I am new to cURL. tdameritrade has put up some guides for their apis. They do provide with simple ...
0
votes
1answer
80 views

C++ Colored output text when redirected in text file

The below code prints "Debug:" in color. printf("\033[1;36mDebug:\033[0m\n"); but when I redirect the to a text file the following is written in the out file: <0x1b>[1;36mDebug:[0m<0x1b>...
0
votes
0answers
34 views

How to install opencl on kubuntu 16?

I executed command below: apt-get -f install ocl-icd-libopencl1 But I get an error. Sorry, my language version is polish [ linux-image-generic-hwe-16.04 : Wymaga: linux-image-4.15.0-88-generic ale ...
0
votes
0answers
30 views

Reinstalling g++ and get bus error

Today I removed the g++ package with the commands: sudo apt remove g++ sudo apt purge g++ So, I reinstalled it with: sudo apt-get install g++ sudo apt install build-essential After the ...
1
vote
1answer
33 views

How to get response from Curl if post was successfull or not? [closed]

i am using curl in c++ problem is that i am able to get error response if connection to server was not made due to wrong address or any other reason but i am not able to get response if data to the ...
0
votes
1answer
265 views

clang doesn't find c++ stdlib on my ubuntu 18.04, but it does on a brand new install. What have I broken?

I've been building a github package for a while ... a new version comes out, and I build it. It uses clang6 which is default on my ubuntu, ubuntu 18.04 now, it fails to compile, it can't find a ...
1
vote
1answer
142 views

b2 doesn't recognize zlib

I have a hard time compiling some program. error: undefined reference to 'boost::iostreams::zlib::best_speed So I am trying to build boost 1.72.0 on Ubuntu 19.10 $ ./b2 Building the Boost C++ ...
1
vote
0answers
260 views

How to downgrade gcc, g++, and gfortran?

I'm trying to install the package mice in Rstudio but the installation fails and shows the error /usr/bin/ld: cannot find -lgfortran. I note that there is no directory called /usr/bin/ld in my PC, but ...
5
votes
1answer
562 views

C++ fmt library instalation is not working

I'm a new C++ user and I have been facing some problems to install external libraries in my programs. Currently, I'm trying to install the fmt library. I downloaded the repository content and unpack ...
0
votes
0answers
124 views

How to compile and run c++ program from Kate editor using build tool?

I'm trying to compile and run a c++ program from Kate editor with the following build command. konsole -e g++ -std=c++14 -Wall -c %f -o %n.o && chmod +x %n.o && ./%n.o But it gives ...
3
votes
2answers
1k views

Installing latest cmake on Ubuntu 18.04.3 LTS run via WSL: OpenSSL error

Using CLion on Windows (a C++ IDE), I'd like to install the latest version of cmake on Ubuntu 18.04.3 LTS run via WSL (the current version of CLion requires cmake > 3.15, while I have only version 3....
0
votes
1answer
401 views

c++ compilng failed

I have tried to build and run c++ files but it failes every time I try. here is the code when I compile it in the terminal In file included from /usr/local/include/c++/8.3.0/x86_64-cros-linux-gnu/...
3
votes
2answers
5k views

How to set Clang 9 as the default C++ compiler on Ubuntu 19.10?

how do I set Clang 9 as the default C++ compiler on Ubuntu 19.10? I searched the internet, but nothing helped. Thank you for answer :)
0
votes
0answers
341 views

Netbeans error for C++: Build Host is not connected

I've installed NetBeans on Ubuntu 19.04 with this command sudo apt-get install netbeans Then, installed C++ plugins, restarted, create a simple hello world project from samples. Nothing is shown, ...
0
votes
0answers
164 views

Cross compile C++ application for ARM64 with openSSL libraries

I made an application in C++ for x86_64 and it works fine on Ubuntu. Now I want to run the same application on arm64 board running Ubuntu. For this I downloaded a cross-compilation tool chain from ...
0
votes
0answers
128 views

Brave browser build fails in Ubuntu 16.04

I am trying to build brave browser https://github.com/brave/brave-browser/wiki I successfully build it around 2 weeks ago. when I am trying to rebuild again it's giving me errors that I do not ...
0
votes
0answers
41 views

matrix multiplication of clbas_sgemm porting with arm compute library giving errors

examples/example_sgemm_1.c: In member function ‘virtual bool NESGEMMExample::do_setup(int, char**)’: examples/example_sgemm_1.c:104:66: error: no matching function for call to ‘arm_compute::NEGEMM::...
0
votes
2answers
960 views

Can't use ftp to transfer a file - permission denied

I'm using Ubuntu and I would like to have a script that once a day transfer my mysql database from my local hard drive to my ftp server (provider is Aruba). I'm correctly able to connect via FTP and ...
0
votes
1answer
1k views

Which package to install to get header file glad.h?

I am trying to compile this example https://learnopengl.com/Getting-started/Hello-Window: #include <glad/glad.h> #include <GLFW/glfw3.h> // ... I have installed libglfw3-dev but I am ...
0
votes
1answer
143 views

Turbo C++ not installing in Ubuntu

I tried installing Turbo C++ in Ubuntu after going through step by step process in DOS BOX, but it shows an error which states that Unable to change to: setup setup is the name I've given to the ...
0
votes
0answers
166 views

Open source c++ library for Ubuntu to fetch system details(like CPU usage, available memory, etc.)

I want to get my system information(like CPU usage, available memory, free disk space, available bandwidth etc.) Is there any open source c++(preferred) library to get this information? I can do it ...
4
votes
0answers
406 views

Assembly Language on Ubuntu

So I was currently studying about assembly language and I came across this awesome command on terminal, gcc -S filename.cpp, that produces the assembly code of a C++ source file. But after I ...
1
vote
1answer
238 views

how can i use kbhit() function while using gcc compiler,as it does not contains conio.h file?

GCC compiler does not contains file but i have to use kbhit() function to make a program, what can i do ? is there any substitution of it?
0
votes
0answers
17 views

Install manually glGA c++ library in ubuntu

Being a newbie in c++, i am facing some problems in installing manually a c++ library, called glGA in ubuntu. I have a folder having various hpp, lib and cmake files. What would be the process for ...
1
vote
0answers
37 views

What make my file become read only when I use open()

We created one applications using below source code(C++): int_t fd = open( "test.conf",O_RDWR | O_CREAT | O_TRUNC, S_IRUSR ); From the beginning, test.conf was OK, it is a read-write file. One day, ...
0
votes
0answers
32 views

need help installing sick lms200 sensor software

I have the LIDAR Sick lms200 http://sicktoolbox.sourceforge.net/ I would like to install the driver, but compiling the source ends in error. I have tried modifying the compilation flags to be c++11 ...
-1
votes
1answer
261 views

error: conflicting declaration of C function ‘int getmaxy(const WINDOW*)’

I'm trying to run the following program on my Ubuntu machine, adapted from this program, using libgraph to provide support for the BGI functions: #include <graphics.h> #include <curses.h> ...
-1
votes
1answer
79 views

What do I do after running make, to use lcd-opencv-simulator?

I'm new to Ubuntu and I need to run a LCD simulator our professor has given us without giving us sufficient information on how to actually use it. The program requires OpenCV, which I believe I ...
0
votes
0answers
320 views

Using matplotlib-cpp in Code::Blocks

I am trying to use matplotlib-cpp according to this guide: Installing matplotlib-cpp, but I am trying it on Ubuntu so It's a little bit different. In "Search directories", I have included these two ...
1
vote
0answers
94 views

Installed c++ libraries and header removed from search paths

I recently upgraded to Ubuntu 19.04. However, somehow I messed something up today and I don't know how to fix it. If I want to build a c++ program, all headers that are located in a subfolder inside ...
1
vote
0answers
77 views

../x86_64-linux-gnu/libarmadillo.so: referencia a `H5Ovisit1' sin definir collect2: error: ld returned 1 exit status

I cannot compile anymore a cpp file with armadillo library. I get this: /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/libarmadillo.so: referencia a `H5Ovisit1' sin definir collect2: error:...
2
votes
0answers
184 views

How should I run this ordinary example from DLIB-C++?

I am too new in DLIB-C++ and I decided to run the following example on my Ubuntu 16.04. However, I receive the following errors. What is the solution? And what if I want to run all the examples of C++ ...
1
vote
1answer
78 views

Snapcraft - configure - permission denied

I'm building a snap but when I build the package, snapcraft tell me : Failed to run './configure --prefix=' for 'synchrorep': Exited with code 126. When I launch ./configure on my local, all is fine....
0
votes
0answers
83 views

Problem with Cpp Debugger in Visual Studio Code

I can't debug my C++ code with Visual Studio Code. I did all the things about configuring launch.json, but it just runs like when I execute and the next line button is disabled. It looks like the ...

1
2 3 4 5
14