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

How to link libraries with x86_64-w64-mingw32-g++

I am wondering how to link libcurl with x86_64-w64-mingw32-g++ on ubuntu thanks ERROR: fatal error: curl/curl.h: No such file or directory 1 | #include <curl/curl.h>
0
votes
0answers
17 views

Show C++ standard library documentation in Visual Studio 2019

Is there any way to show the C++ standard library documentation with Intellisense in Visual Studio 2019? When I hover on functions nothing is shown. Do I need to download the documentation first?
0
votes
0answers
15 views

How to set .cp as file extension of c++ for codeblocks

I believe this is the right place to ask this question. So, after I downloaded Code::Blocks 20.3 and ran it, I saw four options (I forgot those options) and I chose the third option. After I chose ...
0
votes
1answer
49 views

How does one obtain PROCESS_ALL_ACCESS rights to a running process?

I have made (ok copy/pasted) a hack to the game, AssualtCube. Part of the hack involves using OpenProcess() to get a handle with PROCESS_ALL_ACCESS rights to ac_client.exe. This works fine in Visual ...
0
votes
0answers
13 views

How do I transfer CPP code into Linux-service?

I am Building an agent in C++ that alerts me if anyone has entered a USB on Linux-based computers. When I'll finish, I need it to run the code on few Linux-based computers as a service. How do I ...
0
votes
1answer
7 views

Using Visual Studio C++ remote debugging for Linux on a non-MSBuild, non-CMake project

Visual Studio has features to support cross-platform projects, allowing a developer to build, run and debug a Linux program from within Visual Studio, by connecting to and executing on either the ...
0
votes
1answer
14 views

Add function to ~/.zshrc

I'm trying to apply the following : https://stackoverflow.com/questions/58549853/compiling-header-files-for-c-using-vscode-code-runner But I'm stuck/missdo on the part to copy and paste the function ...
0
votes
0answers
23 views

Installilng GiNaC and CLN on windows

I planned to move to Arch Linux but for the time being I'm unfortunately stuck with Windows. I want to install GiNaC. In its installation page it says to install CLN first so that is also something I ...
0
votes
1answer
28 views

ARM processor + zynq-7000 compilation platform in Linux C++? [closed]

I worked on a project that was built by C++ and compiled on a linux ARM based zynq-7000 platform. What kind of platform is this? I know a zynq-7000 (or UltraScale) is a newer FPGA. I also worked a lot ...
1
vote
1answer
22 views

VisualStudio IntelliSense/Resharper C++ doesn't work for .mm files

I've been working on a C++ file with the extension .mm. VisualStudio 2019's IntelliSense wasn't working, so I installed Resharper C++, but it was still not giving me any code completion or other ...
0
votes
0answers
23 views

if one byte has leaked in a page of 4kb in physical ram,then after swapping to disk does it will count as 4kb is used instead of one byte?

We have an 64 bit application running on windows, for the fact we know it is leaking very few bytes of memory in the c++ code.But for a setup which has 16gb physical ram and 32gb pagefile.sys. ...
0
votes
0answers
70 views

Questions on ungoogled-chromium compile time

I started the ungoogled-chromium install from the aur last night, went to bed, and woke up and it's still only about 3/4 of the way complete. I was expecting it to take awhile, but I did not think it ...
0
votes
1answer
165 views

Convert UTF-8 characters to their extended ASCII code

I have a file with unicode characters and I am trying to convert specific characters such as these black characters in notepad++ to get their ASCII value. For example, in the picture I have the DCS ...
1
vote
1answer
93 views

Class not registered C++ Builder

Got installed new IDE for C++ development named C++ builder community and see what I got: class not registered AssemblyName: Borland.Build.Tasks.Common.dll ClassID: {9351FD3F-XXXX-XXXX-XXXXXXXX} I am ...
0
votes
0answers
14 views

Visual Studio Code to #STOP formatting comments

I have my Visual Studio Code and I code different C/C++ code, and my comments should remain as is when I format the document. This is not the case, the comments are broken every time a document ...
2
votes
0answers
248 views

bash script works really slow after updating Mac OS from Mojave to Big Sur

Yesterday I updated my MacBook Pro Mid 2015 from Mac OS Mojave to Mac OS Big Sur, and today I have noticed that my bash script for stress-testing C++ programs works really slow. My script runs this ...
0
votes
1answer
208 views

Unable to start the C/C++ language server. IntelliSense features will be disabled

After updating my C++ intellisence by microsoft I am getting the below error message while compiling with ctrl+shift+b Unable to start the C/C++ language server. IntelliSense features will be disabled....
0
votes
0answers
19 views

Why can’t I change code page on Visual Studio?

New here, so I'll try to explain my problem as best as I can. I tried coding a program in Visual Studio C++ that reads Japanese letters from a text file and displays them. The debug console gave me ...
2
votes
1answer
975 views

Installation failed for gdb in kali linux

$ sudo apt-get install gdb Reading package lists... Done Building dependency tree Reading state information... Done Package gdb is not available, but is referred to by another package. This may ...
1
vote
0answers
54 views

ALFA wifi network card Monitor Mode on Mac OS

I recently bought an ALFA AWUSO36EAC and I want to use it for packet injection and monitor mode on Mac OS. I was told that this is a better page to ask about Network Card related questions. I have ...
1
vote
0answers
109 views

Why doesn't gcc-6 & g++-6 come with their own libstdc++.so

I'm on Ubuntu 20.04 and I added the bionic repo in order to install gcc-6. However when I go to the directory: /usr/lib/gcc/x86_64-linux-gnu/6 the libstdc++.so is a symbolic link to the one in /usr/...
0
votes
0answers
22 views

Visual Studio 2019 - Bad C++ multiline comment alignment

I recently uninstalled and reinstalled VS 2019 and am now having problems with multiline comments in C++ code that I wasn't having before. If I have this comment: /* */ and add a newline in the ...
0
votes
1answer
31 views

Can g++ compilers be used to build linux software on macos?

On windows I am able to develop for linux using WSL2. I ususally use CLion which allows me to switch between msvc and g++ with a flip of a switch. Is it possible to do the same thing on Mac? If so, ...
0
votes
0answers
27 views

I have one application some firewalls allowing my IP, Ports and proxies but some firewalls blocking my application

I have one application some firewalls allowing my ip, ports and proxies but some firewalls blocking my application any help? all third party firewall should allow my application how to allow?
0
votes
1answer
34 views

How could I test C++ compilation on Windows using a Mac OS?

I'm easily able to check how C++ code compiles on Mac OS and Linux. However, it's always a guessing game with Windows, as I don't have any Windows OS nearby. Are there options for developers to check ...
0
votes
1answer
1k views

How to use GCC compiler in Visual Studio

This seems like it should be easy to do but after a couple hours of Googling I still can't figure out how to use GCC as the compiler for C++ in Visual Studio. I've installed MinGW and the the gcc ...
0
votes
0answers
598 views

install C++ compiler (gcc) in SLES (SUSE Linux Enterprise Server)

I need to build a c++ project in SLES (SUSE Linux Enterprise Server) environment. While trying to installing build tools I am facing issue (add repo is failing) in installing c++ (gcc) compiler. ...
0
votes
1answer
43 views

Windows 10 UAC and compiling C++

I'm trying to code some basic c++ on atom ide or notepad++. I followed some tutorials on youtube and I downloaded the mingw c++ compiler and it has installed properly (I think) and I've added it to my ...
0
votes
1answer
26 views

Conditional statements with braces versus without braces - which is fast in C, C++

I know this is silly, but I'm quite curious to know that is there any speed difference using conditional statement (i.e. for, if, while, do while) in C++ with braces and without braces. FYI : I know ...
0
votes
0answers
22 views

Attempting to delete executable shows error that the file is in use by that same executable

I've been doing some C++ programming in Notepad++ and, seemingly randomly, updates to the code did not modify the output, so I opened it up in Windows' file explorer to delete the executable, however ...
0
votes
0answers
62 views

Netbeans c++ plugin installation timeout unsuccessful

I am having issue installing c++ plugin to my netbeans11.3 on macOS. it shows error time out at last step. Even if I try installing netbeans8.2 for c++ only, my system shows error "unable to ...
0
votes
1answer
102 views

Far Manager - *.cpp file association

I've been trying to get started with Far Manager, but there are not many good resources out there for setting it up as an ide. Specifically, I'm trying to create a *.cpp file association so I can ...
0
votes
0answers
42 views

How to run c++ interface files using systemd?

I want to execute a cpp file in systemd that open a graphic interface. my configuration: [Unit] Description=test After=graphical.target Wants=graphical.target [Service] Type=simple ExecStart=~/test ...
0
votes
0answers
71 views

av_read_frame of ffmpeg in windows always returning random packet.stream_index

I'm using ffmpeg to decode an rtsp stream, the av_read_frame is always returning random value on packet.stream_index. The stream have only 2 index, 1 video and 1 audio respectively on streams[0] and ...
0
votes
0answers
354 views

Why is C/C++ plugin not installing on NetBeans?

My OS is Windows 10. I have installed JDK 14 and NetBeans 12. When I try to install the C/C++ plugin it fails. It shows the following message: Now what can I do to solve the problem?
0
votes
0answers
39 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
245 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
42 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
56 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
1answer
159 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
502 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. ...
2
votes
1answer
8k 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
35 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
28 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
201 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 ...
2
votes
1answer
34 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
1answer
163 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: libsymbolic.so: ...
3
votes
1answer
2k 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 ...
1
vote
1answer
3k 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
177 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?

1
2 3 4 5
8