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

learn more… | top users | synonyms

3
votes
1answer
12k 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 dual-...
1
vote
1answer
739 views

Linking WXWidgets in C++ on Mac OSX 10.7 objects not working

For a cross-platform project, we are using wxwidgets to create a cross-platform GUI in c++. WxWidgets was installed on Mac OSX 10.7 using macports. We have no problems with compiling our source-code ...
0
votes
1answer
3k views

How do I find the version of Sun Studio 11 installed on my Solaris 10 server?

When I do : pkginfo | grep SPROapplication SPROatd, it only shows me Sun Studio 12. But, the installer( a Rogue wave library installer) I am using detects Sun Studio 11 as well on the server. But, ...
0
votes
1answer
139 views

route command not executed in rc.local

i need to execute the following command on every startup route add -net 224.0.0.0 netmask 240.0.0.0 dev eth0 so i add it to rc.local touch /var/lock/subsys/local route add -net 224.0.0.0 netmask ...
0
votes
1answer
322 views

Deterministic navigation of c++ class tags in VIM. ctags doesn't work well

Currently, to navigate a.run() tag, I put the cursor on run and press g], which opens a window with enumerated list of tags for all files that have run(). I have to manually find an option that ...
2
votes
1answer
821 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
323 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 ...
1
vote
1answer
1k views

cv.h not found in fedora 15 install of opencv and highgui

I'm writing object tracking software in C++ and using OpenCV and highgui. The problem I have right now is that even after sudo yum install opencv and using the yumex frontend to ensure that all of the ...
3
votes
2answers
1k 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 ...
1
vote
6answers
750 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 ...
6
votes
6answers
330 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 ...
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 ...
1
vote
1answer
1k 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 ...
0
votes
1answer
360 views

Mingw Shell Console Issue

I recently installed MingW/Msys on my XP Pro box (SP 3). When I attempt to open a Mingw shell as a console it behaves incorrectly. The shell window opens for perhaps 5 seconds and then the window ...
0
votes
2answers
1k views

Make Tor use Unique IP for each instance open

How can I get Tor to use a unique IP for each instance of Tor open in C++, Python or Perl? Is there a command to force it to use a unique IP that I can just call using subprocess? *cheers
1
vote
1answer
643 views

How do you add RefocusIt to Gimp?

I'm trying to compile Gimp with a special plugin called Refocus-It. I know that I need to compile something. Can somebody please explain what needs to be done? I would like to accomplish this using ...
0
votes
2answers
1k views

How to access RamDisk Drive from non Admin user account on Windows XP

I am successfully able to create/access a Ram disk drive of 20MB using the RAMDISK sample in WinDDK using my admin account. However when i login as non-admin user on the same machine i get an access ...
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
2answers
769 views

How to find missing brace in .cpp / search within comments?

File has one fewer "}" than "{", however all seem matched. Therefore, it is probably in a comment. How do I search within a comment or otherwise find the missing brace?
1
vote
2answers
4k views

Ubuntu/C++ : Make directory in /usr/local/bin/

I usually use mkdir function to make directory (e.g mkdir("/home/dhw/test", S_IREAD|S_IWRITE) ) But I can't make directory in /usr/local/bin. I guess it is problem with authority. I already know I ...
1
vote
1answer
528 views

Getting CDT as an Eclipse plugin

I've always used Eclipse for Java development. However recently, I've wanted to add other language functionality to my favorite IDE. I got it to work with python and no I need C/C++. A search on the ...
0
votes
1answer
368 views

Vbs Message Box Alternative [C++]

I'm trying to output a oftstream with a text on it that can run as a Message box But I would like to know if there is an alternative to do this witouht .vbs. If it can be done with .exe or another ...
1
vote
5answers
9k 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 ...
2
votes
2answers
693 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 ...
0
votes
2answers
838 views

How to install Sally on Mac? How to install libconfig package on Mac OSX

I want to install Sally http://www.mlsec.org/sally/ on MacOSX when I run ./configure, I get stuck at: No package 'libconfig' found even after installing libconfig through macports. Can anyone ...
1
vote
0answers
664 views

C++ Eclipse in Windows, when the run button is clicked nothing is showing in the console

I am in the middle of the process for installing Eclipse CDT in a Windows environment, and I got everything working, except when I press the "run" button nothing is showing up in the Eclipse console. ...
2
votes
1answer
200 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 ...
5
votes
5answers
17k 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 ...
1
vote
1answer
284 views

Can setrlimit be used to put limitations on firefox?

I noticed that firefox sometimes uses a lot of memory. Can something like setrlimit be used to control it? I tried to use it on the command line, but it didn't work.
0
votes
1answer
68 views

What does mcs stand for in VTUNE?

I am using Vtune (9.1) and noticed that it says things like "Self Time 103,425 mcs" - but what does mcs stand for? If I search in the help system I get no results!
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 ...
18
votes
3answers
12k 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++?
1
vote
1answer
755 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, ...
14
votes
6answers
10k 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 ...
1
vote
1answer
3k views

Add GCC into Netbeans

I want to make programs in Netbeans (C++ language), but Netbeans doesn't detect C++ libraries and compiler. How can I add GCC into Netbeans?
1
vote
2answers
5k views

Using this C++ library

I'm trying to use an executable file (written in C) that calls a C++ library. I'm getting this error in my Windows Server 2008 box: Faulting application name: sample.exe, version: 0.0.0.0, time stamp:...
2
votes
1answer
160 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 ...
21
votes
3answers
45k 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. ...
0
votes
1answer
69 views

How can I locate the header + object file of cksum in Mac OS X

I'm trying to locate the header + object file of cksum in Mac OS X, but with no lack. Any suggestions?
0
votes
3answers
235 views

Some questions on threads and processes

I was asked these questions in interview (C++ interview). I'm not confident of the answers and would like to know more. Can thread create another thread ? Can process create another process ? Can ...
0
votes
0answers
921 views

Visual C++ Runtime Error R6034 - firefox.exe

Unfortunately my brother in law is using Windows and everytime he chats with me in Facebook, an error box comes up that says "Visual C++ Runtime Error R6034", and refers to the firefox.exe file. I've ...
1
vote
4answers
3k views

How do I execute a script or program on Windows Shut Down

I want to run a exe or bat file when window shut down? I want to unmount few drives , which are mounted by my application , when user shutdown the system. For that I need to execute another exe on ...
2
votes
2answers
896 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 ...
0
votes
1answer
367 views

G++ Compile and Run Without Output

This is just a convenience thing. Is there a way to use C++ sort of like an interpreted language, only in the sense that you could compile and run it without outputting a binary file. This is of ...
0
votes
1answer
261 views

Error while installing geany

I have recently downloaded geany 0.19.1. Installation Guide. Autotools based build system The Autotools based build system is very mature and has been well tested. To use it, you just need the Make ...
7
votes
9answers
3k 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 ...
0
votes
1answer
784 views

The backspace key doesn't work while editing C++ source files and it encounter a line break,Why and how to fix it?

I just updated my favorite edit tool notepad++ to version 5.8.1. But when i am editing a c++ source files, i can't use the backspace key to delete the current line when the cursor is at the begining ...
0
votes
1answer
278 views

transfer code from windows to linux

while transfer code from visual studio 2010 to linux we encounter the next message (compiler): "Tank.h:24: fatal error: can`t write PCH file: Disk quota exceeded" class Tank: public Vehicle { ...
3
votes
1answer
6k 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?
1
vote
1answer
242 views

How to install Lagrange in Cygwin?

I need to install a script for biogeographical analyses in Windows XP using Cygwin. The program is named Lagrange and is written in C++. It actually comes with instructions to install in Linux and Mac&...