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/
384
questions
30
votes
2
answers
122k
views
Where do I get make for cygwin?
I need binary file.
27
votes
3
answers
65k
views
Which versions of C++ redistributables can I remove?
I have a number of Microsoft Visual C++ 2005 and 2008 Redistributable and I would like to know which ones are safe to remove, because there are actually more than 10 installed on my computers.
...
19
votes
3
answers
14k
views
How can I let TextMate show line numbers when I'm coding C++?
How can I let TextMate show line numbers when I'm coding C++?
18
votes
3
answers
63k
views
How can I virtualize an ARM machine in Windows?
I'm interested in developing some programs that use OpenCV, but I want them to run on an ARM environment.
Can I virtualize the ARM under a Windows environment with VMWare or VirtualBox or something?
16
votes
4
answers
15k
views
Command line tool to format C++ code on Ubuntu
Is there any command line tool which can be used to beautify C++ file on Ubuntu? If yes, can you please suggest one?
15
votes
1
answer
6k
views
emacs -- C/C++ jump to beginning of containing block
While editing C or C++ files in emacs, I'd like to be able to go to the beginning of the containing block of code. I was expecting to find a c-beginning-of-block function, but alas, no such function ...
14
votes
7
answers
15k
views
How to cause a BSOD on Windows XP and newer versions?
Is there a way to programmatically cause a BSOD on Windows XP and newer versions? How?
BTW just to clarify, this is not for malicious purposes. The client requested to be able to shut down/reboot a ...
14
votes
4
answers
88k
views
Do I need both x64 and x86 versions of the C++ redist
If I have both the x64 and the x86 version of a Microsoft C++ Redist package, can I uninstall the x86 version? If I did uninstall the x86 version, would the x64 version cover the dependencies on the ...
13
votes
2
answers
45k
views
How do I un-indent code?
I occasionally realise that I need to remove one level of indentation when coding (such as moving code out of loop). The problem is I end up with a bunch of lines all indented more than I want it to ...
9
votes
5
answers
59k
views
How to test if gcc is installed?
How can I find out if I have gcc installed on my machine?
I am trying to run CodeRunner, but it isn't responding. I know you have to have gcc installed in order for it to work properly.
I do have ...
9
votes
3
answers
19k
views
Why can't I view and edit c_cpp_properties.json in vscode?
https://code.visualstudio.com/docs/cpp/config-msvc
I'm trying to use VS Code to compile and run c++ using these instructions. While completing this step
Start typing "C/C++" and then choose Edit ...
9
votes
4
answers
25k
views
How Do I run Visual C++ 6 IDE on Windows Vista or higher?
Visual C++ 6 is crashing when opening a project or using the "open" file menu,
how can I 'force' VC++6 to work under windows 7 without a Windows XP emulator / virtual machine / Windows XP Mode?
9
votes
2
answers
19k
views
Installing libraries and header files under Ubuntu Linux for C/C++ development
I have to admit that I feel completely lost each time I have to fulfill the dependencies of some C or C++ code. Currently, I'm on Ubuntu 9.10 (Karmic Koala), but I remember the same feeling of ...
8
votes
9
answers
10k
views
How can I recover source overwritten by a bad compile command?
I had written a source code of C++ and complied it with the same name using the following command line.
For example:
c++ source-code.cpp -o source-code.cpp
Now my source code has been replaced by ...
7
votes
3
answers
33k
views
Where is my TrueTypeFonts located in my computer?
I am not sure if this or Stack Overflow is the right place to ask it.
I am having trouble finding where my TrueType font files are. For example arial.ttf, I need it for Allegro C++. I am using ...
7
votes
2
answers
2k
views
Is it worth reinstalling to enable AHCI on my SSD in order to improve compile performance under Visual Studio?
I am compiling to an SSD connected through SATA using IDE emulation on Windows 7.
Unfortunately, I forgot to enable AHCI when I installed, and though there are ways of performing surgery on Windows ...
6
votes
5
answers
28k
views
Why doesn't my executable execute when I click on it?
Why does it seems like I can't open A executable file created on C++ by double clicking it.
I have a file that I ran from an IDE an I would like to know if there is a Way to set that file to Open the ...
6
votes
6
answers
492
views
notification upon program completion
I'm going to run prog.cpp on my university's Linux cluster (compiled with gcc). I project that the program will take 3-6 days to complete. I was thinking of running it as
./prog &
to run it in ...
6
votes
3
answers
8k
views
There is no disk in the drive. Please insert a disk into drive E:
I have an issue with this message that appears every time I try to compile any kind of Code in C++ language. I'm really tired trying to find a solution and its so annoying cause every time I want to ...
6
votes
1
answer
2k
views
Where is Cordbg?
I'm trying to debug a C++ application recently ported from linux, and I'm used to a command-line debugger. I'm not using Visual Studio, rather NMake Makefiles.
I hear cordbg.exe is a command line ...
6
votes
2
answers
288
views
Boot windows 7 from a disk image of custom format
Windows 7 has an ability to boot from alternative sources besides plain disk partitions - for example it can boot natively from VHD or WIM.
Is the handling of above mentioned formats hardcoded into ...
5
votes
5
answers
4k
views
Why is c++ process much slower than on other machine with same hardware/software?
I have a c++ program (compiled with visual studio 2010 for windows x64) which does some mathematical optimization and has no interactive elements (the (single) process is just started via console and ...
5
votes
8
answers
21k
views
How to run MS C++ 6.0 on Windows 7
I have MS Windows C++ version 6.0 on XP. I'd like to move it to a Windows 7 platform but when I try to install it there I get some garbage about it not being compatible, proceed at your own risk etc. ...
5
votes
1
answer
686
views
Maximum file size on Windows platform
According to this wikipedia page, the size of a individual file on Win10 can go up to about 8 PB with NTFS. Yet the struct Stat is defined as
struct stat
{
_dev_t st_dev;
_ino_t ...
5
votes
0
answers
1k
views
How to change windows settings programmatically?
The following are the categories of settings in windows:
Each has their own set of sub settings (sometimes nested too), as shown in the following picture:
Whenever I format my computer I change a ...
4
votes
3
answers
4k
views
How can I know how much memory a program has used under Linux?
Get process memory consumption this question is about getting the memory usage of running program. I need to know how much RAM a program has used after it has finished.
Say I am compiling a C++ ...
4
votes
2
answers
26k
views
How do we install new libraries for c++ mingw?
I wanted to learn about 'ncurses' library.But I am a beginner and couldn't understand how to get the library setup and usable.Do you just copy the library files and start using it or is there ...
4
votes
1
answer
3k
views
Error while installing boost_1_54
On trying to install boost I get this error during configuration checks. Googling did not give any pointers.
[root@heracles boost_1_54_0]# ./b2 install
Performing configuration checks
- 32-bit ...
4
votes
1
answer
2k
views
What is a SIG_0 when looking at an strace
Attaching strace to a process that is using a lot of cpu, shows that the pid is 'killed' over and over.
The process is using 130% cpu. What is a tgkill( SIG_0) ?
strace -p 3876
nanosleep({0, ...
4
votes
1
answer
7k
views
How can I emulate more virtual CPU processor cores than physically available on Windows?
Is there a way that I could emulate the number of logical/physical processors for Windows like virtualization (VM) ?
I need to simulate processors of about more than 64 and see some minor ...
4
votes
6
answers
27k
views
NetBeans not able to include files
IDE: NetBeans 6.8
OS: Fedora 12
I have been having this problem for a long time now. NetBeans is almost impossible to use with C/C++, maybe because it was not made for it in first place.
Anyways ...
4
votes
2
answers
31k
views
Visual Studio 2013 MSVCR110d.dll is Missing
I'm not really sure if this belongs on SuperUser or StackOverflow, but it doesn't seem to be a coding problem so I'm gonna run with this.
I've started working on a C++ game using Visual Studio 2013 ...
4
votes
3
answers
79
views
Visual Studio and Structures
I’m trying to port an application written for a micro to Visual Studio so I can more easily run the debugger and scan through the code, rather than debug on the chip which is a bit of a pain when you ...
4
votes
2
answers
7k
views
Upgrading gcc for a specific user account
I work on a computing cluster running CentOS6/RHEL6 that I share with ~100 other users, overseen by a single IT admin.
Recently, I started writing in C++, and some of my code depends on C++11. ...
4
votes
1
answer
4k
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 ...
4
votes
1
answer
3k
views
Processes on Mac OSX getting 'stuck' and strange CPU usage
I work in a scientific institution and one of the tasks I'm currently working on involves running simulations and outputting the data it produces on-the-fly to hard disk. When I say 'on-the-fly', I ...
4
votes
1
answer
1k
views
Is there a way to copy the file paths of ALL active windows' opened files? (for saving and restoring your Windows session across a restart)
There is a program I know of called Twinsplay - Professional Edition, which among its other functions, can 'session save' your current open files (i.e. user-opened files - whatever is actively ...
4
votes
1
answer
415
views
how to tune libstdc++ to the native architecture when building gcc
I recently found that when I build my C++ software, I get about a 10% speedup by using the g++ march=native option. When compiling gcc and libstc++, is it possible to tune the libstdc++ library to ...
3
votes
2
answers
7k
views
install in /usr/local/ using apt-get
Is there way to specifically install in path /usr/local using apt-get ? I am using Linux Mint 16 and I want to install some libraries in this path. All of my installed libraries are installed in /usr/ ...
3
votes
2
answers
8k
views
How to install libraries without sudo?
I want to run a lengthy computation on a cluster computer. The cluster computer has a Linux OS and a compiler but no GUI, just a command line. The problem is that I cannot use the sudo command to ...
3
votes
1
answer
9k
views
Does NetBeans have automatic code-completion for C++?
Does NetBeans facilitate code-completion for C++? If yes then what are the shortcuts to use it?
3
votes
1
answer
983
views
Using X11 (X-Windows) programmatically from Windows
For testing purposes I am trying to run C++ code, using the X11 API under Windows.
I understand that an X Server must be running and I have installed Xming for this purpose.
But the problem is that I ...
3
votes
1
answer
2k
views
Why a 200 MB text file overloads 4gB ram
I wrote a simple program in c++ that does some calculations, outputs a number to a textfile, and repeats. Several million times. The final text file was around 215 megabytes, yet when I opened it, ...
3
votes
1
answer
3k
views
How to install libc++.so in Fedora
I wanted to use aapt on my C the error code was:
error while loading shared libraries: libc++.so: cannot open shared object file: No such file or directory
With some research I found out that libc++....
3
votes
1
answer
18k
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/...
3
votes
1
answer
2k
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?
3
votes
2
answers
3k
views
Viual Studio 2019 - C++ - adding DLL reference - Add reference dialog is empty
I try to add DLLs to a project, the project itself runs fine but at runtime it does not find the DLL in VS2017. I just had to copy the DLLs with the source files but here I just cannot find how it ...
3
votes
1
answer
291
views
Does a better/newer C or C++ compiler produce more performant compiled code? Or do they just perform faster/better while compiling?
I am not a C or C++ programmer myself, but I often use software that needs to be compiled or otherwise depends on a compiler, like some R packages.
Will that software actually perform better if I use ...
3
votes
2
answers
21k
views
Compile C/C++ on Chrome OS [closed]
with the release of the newest Chromebook and Chromebox (where the latter is an interesting choice for a family PC for people who don't need apps like photoshop etc.), I wanted to check out a dual-...
3
votes
3
answers
2k
views
audacity - convert multiple .aup's to .mp3's
I have a bunch of about 130 .aup files (all recordings of vinyls) that I would like to convert to mp3. Each .aup is an entire side of the vinyl (I don't want to split the tracks - the whole side as ...