C++ is a statically typed, free-form, multi-paradigm, compiled, general-purpose programming language.

learn more… | top users | synonyms

15
votes
2answers
11k 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++?
15
votes
2answers
36k views

Where do I get make for cygwin?

I need binary file.
15
votes
3answers
21k 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. ...
13
votes
6answers
8k 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 ...
6
votes
9answers
1k 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 ...
6
votes
6answers
258 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
2answers
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
1answer
1k 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 ...
5
votes
2answers
7k views

Installing libraries and header files under ubuntu linux for c/c++ developement

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, but I remember the same feeling of forlornness from ...
5
votes
2answers
197 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 ...
4
votes
5answers
9k 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 ...
4
votes
4answers
518 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 ...
4
votes
1answer
1k 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 ...
3
votes
1answer
4k 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
1answer
2k 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 ...
3
votes
4answers
12k 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?
3
votes
2answers
775 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 ...
3
votes
8answers
12k 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. ...
3
votes
1answer
261 views

Installing Turbo C++ on Windows Vista

I installed Vista 64 bit on my laptop. I wanted to install Turbo C++ as well. How do I install it? It gave me a graphics error. How do I solve this problem?
3
votes
2answers
825 views

Why does Security Essentials notify me about custom DLL file?

I created a dll file with gcc(mingw). When I start my application Microsoft Security Essentials notifies me: Security Essentials detected items on your PC that it doesn't recognize Why does ...
3
votes
1answer
2k 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 ...
2
votes
7answers
3k views

Building Unix/Linux programming environment for a Windows developer

I have been a Windows C++/.NET developer for a few years, and would like to start C++ programming in Unix environment. What I think I have to do is to create Virtual Machine, install the version of ...
2
votes
2answers
6k views

How to know what version of C++ compiler is installed on Linux server?

We have a RHEL5.5 server, and the system engineering guys at my company said that they have recently installed Intel C++ 11.1 compiler on the box. But, when I do a cc -v, I get Using built-in ...
2
votes
3answers
1k views

libstdc++ library not loaded on Mac OS X Lion (10.7.2)

I recently updated my Mac, running Mac OS X Lion (10.7.2) with some EFI Firmware Updates. Since then, certain applications (Pages, Keynote, and Google Chrome for me) don't load. The error Apple is ...
2
votes
2answers
711 views

Running a computer in kiosk mode for a custom Linux C++ program

I want to create a C++ application that is to run on some Linux platform on a specific laptop computer. I do however not want the users of this laptop to use any other applications/system features ...
2
votes
6answers
5k 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 ...
2
votes
2answers
42 views

Is there anyway in which I don't need to specify the linker when compiling?

For example, If my c++ code included math.h so that I can use sin(). When I compile my code, I need to add the linker, that is : g++ main.cpp -lm So my question is: Is there any way in which I ...
2
votes
2answers
224 views

compiler for c++ (thought it was g++?)

After installing the 'Developer Tools' from the mac os installation DVD, I can now execute gcc /path/to/input/ and create an executable shell script from .c code. I thought the C++ compiler to create ...
2
votes
1answer
783 views

Makefile.in Makefile.am files

Can you please tell me what are the differences between Makefile.am and Makefile.in? What about acinclude.m4 and aclocal.m4 files? I am trying to compile a cpp project on Linux.
2
votes
1answer
54 views

How can I measure speedups on my application when performance varies on my machine?

I work on a monolithic program running on Linux that's very memory intensive. We're having trouble tweaking the speed of this program on most of our large memory machines because the performance is ...
2
votes
1answer
153 views

How to install gzopen library on CentOS 6.4?

I'm compiling a program using gzopen library. How can I install this library in CentOS 6.4? I have tried to install it with yum but package not found! No package gzopen available!
2
votes
1answer
4k views

Compile C/C++ on Chrome OS

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 ...
2
votes
1answer
115 views

Visual Studios build C++ in background?

Is there a way to have visual studios build my C++ project in the background every few seconds? Note: I generate code using another tool so if i don't need to be in visual studios to kick off the ...
2
votes
1answer
151 views

C++ 64bit page faults

I have a C++ server application running on Windows Server 2003 64 bit. Machine has 16 cores and 16 GB of ram. Once the app gets to about 2GB memory usage its Page Fault delta shoots up to ~200,000 and ...
2
votes
0answers
13 views

C/C++ functions tag for Geany [closed]

I want to generate the C/C++ functions tag for Geany like those that included in the archive, how I can do that. I want to get auto completion when entering a functions name. Thanks in advance for any ...
2
votes
0answers
206 views

Where is the console ST2/GDB

I'm using sublime text 2. I got GDB to work but I don't see a console window anywhere. I see the GDB console but nothing that outputs text from my C++ program. How do I use GDB and see my the console ...
2
votes
0answers
235 views

LNK1256: ALINK operation failed (80040405) : The key container name 'x' does not exist

Every day I get this error: LNK1256: ALINK operation failed (80040405) : The key container name 'NameOfKeyContainer' does not exist The only solution I have is to delete the key container with: ...
2
votes
1answer
167 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 ...
2
votes
1answer
509 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 ...
2
votes
2answers
393 views

What's the most easy-to-install Neural Network C++ library with command-line for Linux? [closed]

I'm a fan of the "test first" approach to programming. My C++ program needs a neural net. I've been trying FANN (http://leenissen.dk/fann/wp/) but it's been a struggle, as it requires a language ...
1
vote
4answers
891 views

alt-tab alternative

Let's consider the following scenario: In my desktop machine i have two applications opened side by side, a browser and a text editor(half size of the display for each application). How can I switch ...
1
vote
3answers
702 views

How can I virtualize an ARM machine in Windows?

I'm interested in develop some programs that use OpenCV but I want this to run on ARM environment. Can be virtualized the ARM under Windows environment with VMWare or VirtualBox or something? Thanks ...
1
vote
6answers
499 views

g++ compiler : unable to compile

This is the first time that I'm using the g++ compiler to compile my c++ programs. I have installed cygwin g++. and I'm trying to run a very simple program to display "hello", to see wether it would ...
1
vote
5answers
6k 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 ...
1
vote
1answer
930 views

How do I use “cin” and “cout” in C++ with TextMate?

I am new to both C++ and TextMate, and I'm running into a problem. When I run my extremely basic "programs" in TextMate using C++, it completely ignores the statement "cout >>" and just either ignores ...
1
vote
1answer
530 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, ...
1
vote
3answers
8k 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 ...
1
vote
3answers
289 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++ ...
1
vote
2answers
1k views

How can I install GCC on Mac OS X Lion without Xcode?

I find it really hard to believe there is not a simple solution to install GCC on Mac without having to download and install more than 1 GB+ of Xcode. I found a site that helps reduce the amount ...
1
vote
2answers
153 views

EOF ASCII/HEX code in text files

As far as know in the end of all files, specially text files, there is a Hex code for EOF or NULL character. And when we want to write a program and read the contents of a text file, we send the read ...