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
0 answers
19 views

my gcc compiler not working ig something is wrong with my mac m1 . when i install compiler it shows this- [closed]

brew install gcc Error: /usr/local/Homebrew is not writable. You should change the ownership and permissions of /usr/local/Homebrew back to your user account: sudo chown -R $(whoami) /usr/local/...
user avatar
  • 1
0 votes
0 answers
9 views

COUT gives strange number for simple C++ code [migrated]

I am trying to add a ASCII asterisk (*) frame around the hello world in a very simple C++ code. It works but gives this strange number before the frame. Here is my sample code. #include <iostream&...
user avatar
0 votes
1 answer
85 views

Cannot find g++ after msys2 install

I want to install g++ so I can compile and run C++ code in VScode. I started by trying to follow the VSCode-provided guide which states I need to install mysys. I tried installing msys2 per the given ...
user avatar
0 votes
1 answer
29 views

How to install bc2cnf in ubuntu?

I would like to use the bc2cnf tool to generate CNF for a digital circuit. Please let me know how to install and run the bc2cnf tool (from the BC package) in ubuntu using the terminal. Thanks in ...
user avatar
  • 3
0 votes
0 answers
114 views

Error when bootstrapping CMake 3.22.2

I've been trying to compile CMake on Termux (Android); But whenever I use this command: ./bootstrap && make && make install It gives me this Error: ------------------------------------...
user avatar
0 votes
0 answers
421 views

'g++' is not recognized as an internal or external command in Sublime Text 3

how do i fix this? i need help to be able to run c++ code. i think i know what the general idea on how to do but i need it to be more specific. i've downloaded a zip file of mingw from this link: ...
user avatar
  • 1
0 votes
1 answer
133 views

how can sort my files in windows with custom filter?

I have roughly 80 files in that files all files have # number like (in file name's last portion has #1,#2,#3 like) I want to sort this with # order how can I do that. Please see image for more ...
user avatar
0 votes
1 answer
1k views

Pip error - Cannot open include file: 'basetsd.h': No such file or directory

[SOLVED] Answer in comments! I am trying to install these requirements (jaydebeapi==1.2.3) in Python and facing the issue bellow. The main message of error is: "Cannot open include file: 'basetsd....
user avatar
  • 1
2 votes
1 answer
145 views

How to create new build system on sublime text 4

I used sublime text 3. I created a new build system for C++ to take input from the command line. Recently I installed windows 10. So I have to install sublime text again. Now the version of the ...
user avatar
0 votes
0 answers
232 views

FFMPEG Hardware Accelerated NVIDIA Video Encoding

I need to decode a video, analyze frames and encode it back. I am able to do it using FFMPEG C++ without GPU. However, I am having problems with doing it on NVIDIA GPU. So far, I am able to decode the ...
user avatar
  • 1
0 votes
0 answers
137 views

combine raw video and audio buffer and play using named pipes by ffplay

I have one video buffer and one audio buffer, I want to combine these buffers and play using ffplay as a combined entity, currently I am using this command , which obliviously doesn't work... ffplay -...
user avatar
0 votes
0 answers
54 views

iptables not getting packets (but wireshark can see them)

I'm working on a project involving manipulating IP packets using C++ and nfqueue. I was able to implement IPv4 encapsulation (IP protocol number = 4) in my code. I want to create a tunnel between two ...
user avatar
0 votes
0 answers
39 views

Clion vs Visual Studio Community 2019 for c++ dev work

So Iam having a hard time choosing between visual studio 2019 community and clion, mainly because Iam debating if I should get m1mac mini or a windows machine. Can someone explain the main difference ...
user avatar
  • 1
0 votes
0 answers
80 views

Windows: How to convert binary database file (compressed with zlib) to human-readable string data? (ProcrastiTracker .PT file)

The current question is derived directly from this one, as my general problem is how to process the data collected by the ProcrastiTracker program. Once installed on a Windows machine, ...
user avatar
  • 101
0 votes
1 answer
69 views

Why does changing the executable in a powershell line cause it to not work?

No doubt I have done something very simple wrong but I cant figure it out. I'm no expert, I'm writing my dissertation and am using .bat files with a series of PowerShell instructions to convert and ...
user avatar
0 votes
1 answer
138 views

Package incompatibility between 32bit C++ and 64bit python

I am working on a project where I need to compile a C++ wrapper on a ARM processor while also working on a python project which uses the C++ wrapper. It's on a Rock Pi E with 64 bit Debian 10. For the ...
user avatar
0 votes
0 answers
79 views

Linux xfce4 with login user command

I have a Linux Ubuntu 20.04 computer running Xubuntu. I am in the process of writing a c ++ program that consists of a completely new login screen. This login screen also works and I can check whether ...
user avatar
  • 1
0 votes
0 answers
23 views

Visual C++ 2008 Redistributable Setup keeps appearing in root of E:\

Should I be worried? is this malware? I deleted it once but it appeared again, I have no idea what is causing this.
user avatar
0 votes
1 answer
42 views

How can I get passed this zipHMMlib build error on Ubuntu?

I've installed the latest Ubuntu Server on an Oracle VirtualBox 64-bit machine instance, with host machine Windows 10 and 64-bit OS. I installed a "slim" desktop environment using a random ...
user avatar
0 votes
1 answer
198 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 ...
user avatar
0 votes
0 answers
185 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 ...
user avatar
0 votes
1 answer
144 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 ...
user avatar
  • 217
0 votes
1 answer
1k 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 ...
user avatar
0 votes
0 answers
100 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 ...
user avatar
0 votes
1 answer
94 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 ...
user avatar
  • 3
1 vote
1 answer
104 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 ...
user avatar
0 votes
0 answers
39 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. ...
user avatar
0 votes
0 answers
241 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 ...
user avatar
  • 125
0 votes
1 answer
902 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 ...
user avatar
1 vote
1 answer
210 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 ...
user avatar
2 votes
0 answers
372 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 ...
user avatar
  • 21
0 votes
1 answer
621 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....
user avatar
1 vote
1 answer
3k 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 ...
user avatar
1 vote
0 answers
138 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 ...
user avatar
0 votes
1 answer
40 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, ...
user avatar
  • 1,736
0 votes
0 answers
31 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?
user avatar
0 votes
1 answer
41 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 ...
user avatar
  • 123
1 vote
1 answer
5k 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 ...
user avatar
0 votes
0 answers
2k 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. ...
user avatar
  • 101
0 votes
1 answer
81 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 ...
user avatar
0 votes
1 answer
35 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 ...
user avatar
0 votes
0 answers
28 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 ...
user avatar
  • 101
0 votes
1 answer
343 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 ...
user avatar
1 vote
1 answer
641 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 ...
user avatar
  • 145
1 vote
1 answer
52 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++...
user avatar
0 votes
0 answers
143 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 ...
user avatar
  • 131
1 vote
1 answer
186 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 ...
user avatar
1 vote
0 answers
648 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. ...
user avatar
  • 11
3 votes
1 answer
14k 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/...
user avatar
  • 93
0 votes
0 answers
41 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 clipboard with just select a text, in macOS. This ...
user avatar

1
2 3 4 5
8