Questions tagged [c++]

C++ is a statically typed, free-form, multi-paradigm, compiled, general-purpose programming language. Programming questions are off-topic and should be asked at http://stackoverflow.com/

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

Windows must now restart because the [our service name] service terminated unexpectedly [migrated]

as a disclaimer, I am posting this here because I have only seen comments referring to this type of behavior where people have indicated a possible problem going on with the system. If this is not ...
0
votes
0answers
17 views

Mounting ecryptfs using C++ mount function [migrated]

I am trying to mount ecryptfs from within a C++ program. I can definitely mount it without it asking questions by issuing this command at the prompt: sudo mount -t ecryptfs -o "rw,key=passphrase:...
0
votes
0answers
14 views

Dev c++ console exits immediately after output

I have been using Bloodshed Dev-c++ IDE for programming in c++ since a couple of years. It used to work just fine, but just few days back I noticed that whenever I run a program, the output console ...
1
vote
1answer
48 views

How to kill a c++ .exe file that I made

1328D carousel.exe is the file I want to kill. Actually it is a program for a simple question which I wrote. But somehow, it's stuck (in an infinite loop probably). When my computer stopped responding ...
1
vote
1answer
40 views

Common way to install packages in Windows

I'm not an expert on Windows, so my apologies if this question is either stupid or not of a good quality. I have a small software pipeline in Ubuntu (16.04 LTS) which is composed of few libraries (C++...
0
votes
0answers
17 views

VSCode cannot find header files that are on a virtual server

I'm working on some C++ with VSCode. It's for a website and I'm running it locally with Lando. I'm getting errors that VS can't find libraries header files. I suspect that it's because Lando has ...
1
vote
0answers
127 views

Broken Dev-C++ Install in Windows 7 User Account

On Windows 7, I'm upgrading from Dev-C++ 4.9.9.2 to 5.11. First I uninstalled the old version, then install 5.11. Running it then works fine under an Administrator account, but trying to run it in ...
1
vote
0answers
83 views

Shifting C++ Compiler from Windows to Windows Subsystem for Linux (WSL)

While learning how to code in C++, I installed minGW to allow me to compile C++ code through IDEs and the command prompt. However, recently I have been trying to use the WSL for most of my tasks. ...
1
vote
1answer
1k views

How to install MinGW 64 bits on Windows?

I hit this problem: mingw-w64 installer "the file has been downloaded incorrectly" when I download mingw64 from sourceforge. I followed the answer there, downloading https://sourceforge.net/...
0
votes
0answers
34 views

How to add feature “don't copy when pressing command” in this c program—macPaste?

https://github.com/lodestone/macpaste https://github.com/lodestone/macpaste/blob/master/macpaste.c with this little project, i can copy a text to cilpboard with just select a text ,in macOS. this ...
1
vote
1answer
26 views

Is the size of a text file containing a string the exact same as 2 text files each containing half of the original string?

If I have a string 'abcde', and I saved it in file1.txt, and saved 'abc' in file2.txt, and 'de' in file3.txt, does the sum of the sizes of file2.txt and file3.txt is exactly equal to file1.txt? I ...
0
votes
0answers
79 views

Microsoft Linker Version Information

I am completely new to Windows. Currently I'm working on Windows malware analysis and I'm trying to cross-reference some facts to be as accurate as possible in my report. My problem is that I have ...
0
votes
0answers
26 views

How can I create a custom file reader?

I would like to be able to read and edit flp files generated by FL Studio, preferably using python. I tried the following code which didn't work: with open("Emptyflp3.flp","r",encoding='cp1252') as ...
0
votes
0answers
9 views

Large CMake project in CLion: it works without error, but it takes a long time

I have a C++ project that I have successfully imported into CLion. It works: I can successfully build the project. Unfortunately, it takes a long time (5 minutes or so) for the CMake project to ...
2
votes
1answer
29 views

Compiling C++ using VisualStudioCode on OSX

Total novice C++ user going thru tutorials using Visual Studio Code on OSX. Barest bones Hello World program #include <iostream> int main() { std::cout << "Hello, World!"; return ...
0
votes
0answers
18 views

Is there a way to get keyboard input in windows without using the windows API?

On linux based systems you can query usb devices in /dev/input - linux or /dev - macos to find out if it is a keyboard and from there attempt to recieve input from it. I imagine you can use the X ...
0
votes
0answers
152 views

Build facebook folly on CentOS7

I want to compile Folly on CentOS7 platform, but I encounter some error as following: -- Found double-conversion: /usr/lib64/libdouble-conversion.so -- Found gflags from package config /usr/local/lib/...
0
votes
1answer
65 views

libsymbolic.so: cannot open shared object file: No such file or directory

I am trying to debug my C++ application from the shell. gdb --args [scripts' parameters...] Then, in the gdb: (gdb) run and I get the output: error while loading shared libraries: ...
0
votes
0answers
54 views

What is the PCL version used under pcl_ros package?

I want to use pcl::cuda and pcl::gpu classes under PCL 1.9, but with ROS Kinetic I got PCL 1.7 by default.How can I get a pcl_ros package having PCL 1.9 bundle?
2
votes
1answer
457 views

How do I downgrade MinGW GCC to 4.8,4?

I'm starting a C++ course in college, and they asked for all assignments to be compilable on GCC 4.8.4. I decided to go with MinGW on Windows 10 via Eclipse, but on the "Versions" tab of any given ...
0
votes
0answers
29 views

Setting up Port Forwarding so C++ Soket program would work

I followed this tutorial:https://www.geeksforgeeks.org/socket-programming-cc/ as it's my first time working with sockets. The program worked fine on a LAN with client connecting to server with server'...
1
vote
1answer
221 views

I can't run c ++ code in vscode

cd "/home/furkan/Desktop/denemee/" && g++ Untitled-1.cpp -o Untitled-1 && "/home/furkan/Desktop/denemee/"Untitled-1 /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/Scrt1.o: ...
2
votes
1answer
54 views

How to always use single line comments in Visual Studio?

How do I force Visual Studio 2019 to use single line (//) comments instead of multi-line (/* */) comments when I press CTRL+K+CTRL+C?
0
votes
0answers
32 views

C++ application crashes

I have C++ application running on Windows 7 machine. It has .net 4.8 version, recently updates windows such as Security Update for Microsoft Windows (KB4512486),Security Update for Microsoft Windows (...
0
votes
0answers
10 views

Can't connect to visual GBD shell: Wrong Password

I tried to connect my BannanaPi-M2 Berry with Raspian on it with Visual GBD ssh it connects and the Handshake works but it apparently says wrong password even if its right. I set the password ...
0
votes
1answer
152 views

Connect to Enterprise WiFi network issue

I configured the Radius Server on Windows Server 2016 and I want to connect to Enterprise WiFi network using my application. I tried to do the following steps: Set the profile without credentials ...
2
votes
0answers
78 views

blob.cpp: Check failed: count_ == proto.data_size() (1 vs. 0)

I was trying to run a sample Caffe code from a git repo. I installed Caffe on my Ubuntu 18.04 (with apt-get install libcaffe-cpu-dev), and compiled this repo code and DeepVideoSummExample executable ...
0
votes
0answers
18 views

Understanding the gibberish error when compiling LLVM from source

Here are the things I did, Compiled and installed gcc-9.2. Compiled and installed GNU binutils-2.32 Compiled and installed GNU Make-4.2 I downloaded the source codes for LLVM, Clang, LLD, libcxx, ...
2
votes
1answer
240 views

/usr/bin/ld: cannot find -lcaffe

I installed Caffe-cpu on my Ubuntu 18.04 via the apt-get command, as it instructs on their official website: sudo apt install caffe-cpu But when trying to run a sample from a git repo, it needs the ...
0
votes
1answer
34 views

Visual Studio 2017 Outputting in Hex

I'm just messing around in VS Community 2017 and whenever I debug, the answer is output as below. This happens in two different programs I've debugged. ex. Output is 00F911D1 rather than expected ...
1
vote
0answers
28 views

PoDoFo: Setting Font size

We seem to have a problem with SetFontSize, no matter what size we set, we still get the default size. This user on Stackoverflow reported a similar issue: https://stackoverflow.com/questions/...
0
votes
0answers
66 views

Developer Command Prompt for VS 2019 not completely deleted

Trying to completely uninstall Developer Command Prompt for VS 2019. I (thought) I removed it from my system, but it still shows up in the start menu when searching for it, and it does not give any ...
0
votes
0answers
155 views

OpenCV and Caffe -based code: cannot open shared object file: No such file or directory

I was trying to compile and run a repo located here, which I compiled using Cmake and make (also in the repo). I have OpenCV 3.4.7 installed, but I don't know why when running the executable, it picks ...
0
votes
0answers
64 views

Valgrind - Memcheck xtree on KCachegrind, understanding the relation of allocated and freed bytes

I hope this question is understandable, but I would like to present the scenario. I'm trying to follow some stuck memory on a C++ application with memcheck, and I produced an xtree file with --xtree-...
0
votes
0answers
199 views

I am not able to install uWebsocket, and getting followings errors

I am installing uWebsocket for my project and I am getting following errors: Steps which I followed : git clone --recurse-submodules https://github.com/uNetworking/uWebSockets cd uWebSocket and then ...
0
votes
0answers
32 views

I can't include ifstream or ofstream in eclipse c++

I'm using eclipse with mingw and I can't include ifstream or ofstream. I looked in the mingw include folder with the standard libraries and I can't find either of them. I also can't find the source ...
0
votes
0answers
31 views

Quarantine message upon compiling in Dev C++

I have newly setup Dev c++ in my laptop in excitement of ditching Turbo C++ for this more intermediate IDE to use for practice purposes... I'm quite new to this IDE and just went off exploring about ...
1
vote
0answers
21 views

How VS2019 Linux C++ debugger indexes files?

How VS2019 Linux C++ debugger indexes files? Does Visual Studio 2019 Linux ssh c++ debugger index files for IntelliSense use on Linux server where gdb is or it establishes a SSH connection for each ...
0
votes
0answers
58 views

How I can do some remote build step with visual studio linux c++ project after copying files?

Linux project system in visual studio provides "remote pre-build event", "remote pre-link event", and "remote post-build event". But if i trying do something remotely at "remote pre-build event" - my ...
0
votes
0answers
13 views

Qt kits have yellow yellow arrow sign. Can't compile code

I am using qt open source version 5.13.0 clang for c++ language. It has worked fine for a couple weeks. Now, all of sudden, it doesn't compile and is showing a yellow colored yield sign in front of ...
0
votes
0answers
134 views

Running Visual Studio C++ Project on Pop OS

I recently changed my Operating System from Windows 10 to Pop OS. We'll when everything else seems to be fine I'm not able to figure out how I can run my Visual Studio C++ Projects in Pop OS. The ...
0
votes
0answers
17 views

Multi-threaded program: One thread is not scheduled for a long time

I have an application with two threads. One thread(A) has a for loop which processes a number of large files. The other thread(B) is writing a log line using a timer(every 1 second). When the number ...
0
votes
1answer
302 views

How to troubleshoot C / C++ not producing output in VS code?

I just followed the set up for C / C++ in VS code ( https://code.visualstudio.com/docs/cpp/config-mingw ), I found two strange things: In the "tasks.json" the code has this "command": "g++" which is ...
0
votes
1answer
313 views

YouCompleteMe not parsing #include

YouCompleteMe worked fine until I upgrade Ubuntu from 16 to 18. Now it doesn't understand using std::cin; saying no member named 'cin' in namespace 'std'; did you mean 'min'? It also doesn't read ...
0
votes
0answers
117 views

Unable to compile out of the box Qt Gui App in the Visual Studio extension C++

I was banging my hand against this wall, attempting to install the qt Visual studio tools, both VS and the Qt extension are the latest 2019 version, with the Qt version 5.13.0: Basically after I've ...
0
votes
0answers
61 views

qt c++ creator dont autocomplet

I have an issue with my qt creator, it don't autocomplete and not run any simple program, Can you help me please. I have already installed all packages : install libgl1-mesa-dev and build-essential. ...
0
votes
1answer
765 views

installed Opencv 4.1.1 from source over 3.4.3, and C++ headers are not linking correctly

I jusst installed Opencv 4.1.1 from source, with python 3 bindings. My Python installation seems to work correctly, because if I run: import cv2 cv2.__version__ I get '4.1.1' However, I also want ...
0
votes
0answers
73 views

Importing a very large CMake project into Clion

Working with a very large preexisting CMake project. The project has 38000 files in it with 274 CMakeList.txt files. What I am experiencing is the failure to build and subsequent failure to load the ...
0
votes
0answers
65 views

OpenMP with Clang in Visual Studio

I am trying to get access to version 4.0 of OpenMP. In order to do that I used the Visual Studio installer to get Clang, which is supposed to have support for OpenMP. However, when I try to build my ...
0
votes
0answers
20 views

Debugger of Visual Studio Code do nothing

First time use VSCode. I try to run the Debugger but nothing happen. No errors , no logs , nothing. I really need this , cause debug is so important for competitive programming which i am doing right ...

1
2 3 4 5
8