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

learn more… | top users | synonyms

17
votes
2answers
48k views

Where do I get make for cygwin?

I need binary file.
16
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++?
16
votes
3answers
30k 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
9k 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 ...
8
votes
1answer
2k 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 ...
7
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
9answers
2k 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
302 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 ...
5
votes
4answers
16k 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?
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
209 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
12k 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
657 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
2k 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
5k 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
3answers
20k 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 ...
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
6answers
7k 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 ...
3
votes
2answers
904 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
13k 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
265 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
869 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
0answers
46 views

Heterogeneous (cpu+gpu) System Architecture using C++ [closed]

I want to develop an image processing system on a computer that has both multi-core CPU and GPU (I don't have such a computer yet, so this is part of the question too - what cpu and gpu models are ...
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 ...
3
votes
1answer
180 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
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
3answers
1k 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 ...
2
votes
2answers
8k 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
2k 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
787 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
2answers
39 views

Using notepad++ command line commands

I am trying to use the -l parameter in a notepad++ command line to open a file and have the highlighting be set to highlight for C++. I typed in the command: notepad++ -lC++ file.cpp For some ...
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
233 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
2answers
1k views

Microsoft Visual C++ 2010, 2008, 2005: removeable?

I have about one million different Microsoft Visual C++ Runtimes installed... 2005, 2008, 2010. Can I remove some of them, or will I have issues?
2
votes
1answer
791 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
82 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
237 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
6k views

Installing Cygwin C and C++ compilers for NetBeans IDE 7.2

I am very new to Cygwin, C, C++ and NetBeans IDE 7.2. My PC is running MICROSOFT WINDOWS 7 OS. I have read the documentation on how to install the Cygwin C C++ compilers. ...
2
votes
1answer
7k 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
149 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
157 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
49 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
316 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
315 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
666 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
470 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
5answers
7k 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
4answers
947 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
6answers
589 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
3answers
952 views

In linux, how to find whether CMOS battery is working or not?

I want to programatically determine whether CMOS battery is working or not. In my C++ program on linux I want to connect to internet and update system time if CMOS battery is not present or not ...