C++ is a statically typed, free-form, multi-paradigm, compiled, general-purpose programming language.
1
vote
2answers
51 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++ ...
3
votes
1answer
42 views
Transpose column to row
How do I convert code from a column:
1
2
3
4
to in a row (with spaces):
1 2 3 4
using Notepad++ ?
0
votes
1answer
23 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, ...
-1
votes
0answers
57 views
linux: best emacs setup to develop in C++ [closed]
What is the best setup in Emacs to develop in C++?
I have read about
CPlusPlusMode
CppTemplate
CEDET
FlyMake
Flycheck
Some of which are already integrated into Emacs 23 or Emacs 24, and I would ...
0
votes
0answers
39 views
Additional compiler options for Sublime Text 2 project
I've been using Sublime Text 2 for some C++ Projects. The project management features are however, somewhat limited. It is possible to create a new build system for a specific project, but I was ...
-1
votes
0answers
17 views
Downloading files with QWebView [closed]
I created a small web browser with QT Creator and QWebView. I's working very good and the pages are loading very fast. But how can I make my browser capable of downloading files? I looked through the ...
0
votes
1answer
64 views
Install CodeLite on CentOS
I have CentOS 6.4 I want to install CodeLite.
Their website http://codelite.org/LiteEditor/Download#toc5 says that you need to compile it (as they don't have a package for CentOS).
I did
git clone ...
0
votes
0answers
57 views
Installing boost asio on CentOS 5
I tried running:
yum install boost boost-devel boost-doc
(1/3): boost-1.33.1-15.el5.i386.rpm
(2/3): boost-doc-1.33.1-15.el5.i386.rpm
(3/3): boost-devel-1.33.1-15.el5.i386.rpm
Then it ...
0
votes
0answers
28 views
How do I get a voltage on a PCIe Parallel Port?
I'm trying to use a PCIe Parallel port from C++. (http://www.amazon.com/StarTech-com-Express-Profile-Parallel-PEX1PLP/dp/B004G7O2AC)
I can't seem to change the status of any of the registeres and my ...
0
votes
0answers
19 views
Where to find mono libraries to link with my visual studio project?
I'm looking for mono-2.lib but I can't find it.
I have installed mono 2.10.8.
The lib folder inside installed mono doesn't contain mono-2.lib.
Is there any package so I can download static libs of ...
0
votes
0answers
12 views
Additional source directories using Geany
I'm using Geany in Ubuntu as an IDE for a C++ Project, and I want to use some external libraries (from Webots). However, I don't find the option to specify additional library paths (as one can find in ...
0
votes
3answers
49 views
Using OpenCV without an IDE
I need to run a C++ program using OpenCV on a BeagleBoard running Angstrom. I know how to do this with an IDE (The program itself is ready), but I don't know how to compile it without one. I realize ...
0
votes
0answers
29 views
Microsoft Visual C++ Express file problems
So I am coding a C++ game using SDL and this isnt the first time I get this problem, basickly in the compiler itself I can see the cpp and header files just fine:
but in the project folder where ...
0
votes
1answer
34 views
running app in anjuta gives me **Error**: You must have `glib' installed
I get this error when I try to execute an application in anjuta in Fedora 16 and 18.
Error: You must have `glib' installed.
I did run 'yum install glib glib-devel' but the problem persists
I ...
0
votes
0answers
43 views
How to stop the animated status bar icon for large C++ solutions in Visual Studio 2010?
In Visual Studio 2010, when I have a large C++ solution open, there's a small document icon containing "++" beside the line number in the status bar. It continually updates, "filling in" the icon ...
0
votes
1answer
80 views
getting global IP address when using a vpn
How can I get my global IP address? I can see my global IP address via a site: www.whatismyipaddress.com
It shows correctly about information of my computer including IP address.
But if I use a VPN ...
1
vote
1answer
82 views
Cedet 1.1 with Emacs 24.2 in Windows cannot parse c++ header files without extension
Emacs 24.2, Cedet 1.1, Windows 7
Visual Studio 10.0 Include directory
(add-to-list 'load-path " ~/.emacs.d/cedet-1.1/common")
(load-file "~/.emacs.d/cedet-1.1/common/cedet.el")
...
0
votes
0answers
42 views
Can I install valid Visual C++ on a usb drive
The answer to http://stackoverflow.com/questions/15230963/distutils-dist-py267-userwarning-unknown-distribution-option-use-2to3/15231209#15231209 suggests that I need a valid Visual C++ in order to ...
1
vote
0answers
55 views
Sublime TextEditor 2 in Vintage mode completion
I have several problem with my autocompletion which I want to fix:
I have completion by Space. I want that when I press Space means I don't want completion I want a space symbol now.
I want to ...
0
votes
1answer
132 views
Filtering Sublime Text 2 buffer contents through an external program
I am trying to add uncrustify for my C++ code formatting in Sublime Editor 2.
I know that there are some ways to run external process in SE2. But the main problem is that cannot update the buffer ...
0
votes
1answer
57 views
What is the proper vim syntax highlighting for final, override keywords in c++?
In ~/.vim/syntax/c.vim
I added:
syn keyword cStructure final override
because I didn't know what keyword type to use.
Any recommendations for the correct type for these function modifiers?
-4
votes
1answer
50 views
Best assembler -> C book? [closed]
I know there are good assembler books and there are good C/C++ books, but is there a book which maps the two programming languages/levels together?
-1
votes
1answer
73 views
How do I enable some type of c++ syntax highlighting for pico in terminal? [duplicate]
I use my MacBook for my CS class, using terminal. I usually connect to a Linux server via ssh. The servers are super laggy at times so I've decided to just work on projects on my local machine and ...
0
votes
0answers
40 views
NetBeans 7.2RC2 - C project with remote build server - Won't modify remote files
I'm using the latest Netbeans 7.2RC2 with the latest C/C++ plugin.
There is a VMWare guest with Ubuntu 12.10 sitting inside which would act as a build server.
Everything went well until some point ...
0
votes
1answer
90 views
How to generate class skeleton from given C++ class definition (header) file in Vim?
Are there any plugins / snippets that can generate a C++ class skeleton from a given header file, for Vim? (I tried ccimpl but there does not seem to be much information on implementing it).
0
votes
0answers
19 views
Invalid Handle connecting to MySQL [closed]
I am receiving an "invalid handle" exception when I use my program, via MySQL Connector C++ 1.1.0, to connect to MYSQL 5.5 on Windows Vista platform.
I can connect using the programs:
mysql.exe
...
0
votes
0answers
127 views
Eclipse (Juno) Plugin: CDT does not work properly
I installed CDT plugin for Eclipse Juno, but I can't create new C++ projects in eclipse. I tried re-installing it. I also tried executing:
eclipse -initialize
in the folder containing eclipse.exe ...
-1
votes
2answers
93 views
What is a good WYSIWYG editor and wiki engine for making a long programming tutorial? [closed]
I would like to make a multi-page online tutorial that includes a lot of snippets of C++ code. I'm looking for something like the preview of source code provided by the programming-related ...
0
votes
2answers
41 views
submitting jobs to a Linux workstation
I have access to some Linux Workstations on which I run my
C++ executable files from my Laptop but the problem is that
each time I run a job from the terminal in my laptop I have
to keep a terminal ...
1
vote
1answer
95 views
Compressing multiple files into multiple archives?
I have a folder full of pdfs and I'm tired of Winraring each file separately. I don't want to put them all in one archive.
Isn't there a command line I can use to make Winrar compress a file with ...
1
vote
0answers
14 views
VS2010 Dissembly window goes on forever?
When I am looking at the assembler code in VS2010, in the Dissembler window- if I scroll downwards why does the assembler continue? Is this because it is representing the assembler of my mouse ...
-1
votes
3answers
86 views
make command for installing in linux give it a directory
I want to install bedtools (i.e., a c++ source code for manipulating certain types of files). In order to install it the installation instructions says to download the tar file, untar the file, go to ...
0
votes
0answers
107 views
Running Windows Visual c++ program in Linux
I am trying to run this code on PAGE 7. of this document, and successfully ran it on Microsoft Visual Studio 2010 for Windows. The problem is that I need to get this code working on linux. I read up a ...
0
votes
1answer
480 views
Cannot Run HelloWorld C++ App on Eclipse, Mac OS X? No RunAs Option; GCC Not Installed Despite XCode Installed
I've spent hours this evening trying to get the hello world C++ App to run and no luck.
What I've Done:
1. Installed XCode and C++ for Eclipse as per ...
2
votes
2answers
39 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 ...
0
votes
2answers
104 views
How does the OS generate a random socket port?
I'm wondering how the OS makes sure that the clients don't get the same "random"(binding the socket by setting the port to 0) port as any other client in the network, since I want to communicate using ...
2
votes
0answers
77 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:
...
0
votes
0answers
125 views
Create a child process programmatically and kill if necessary in c++ [closed]
I am new to c++. I want to create a child process programmatically. I searched the web. and see that i can use fork() and exec() but. I want the to run the parent process and the child process ...
-1
votes
2answers
176 views
Command to test if system is Windows or Unix [closed]
I'm looking for a shell command in unix that has a non zero output that is uniform across all unix platforms (for example will allways return 1 on a unix system) and also has no (or zero value) output ...
1
vote
2answers
117 views
limiting the hard drive read speed for a program c++
Is there a way to limit how fast a program can read from files without slowing the program itself down?
0
votes
0answers
226 views
Best Linux Distro for C++ Programming? (Cross-Platform) [closed]
I was wondering what's the best linux distro for me.
I am a c++ programmer who creates software and games. I would need to target both platforms (Unix and Windows) and I would need it to be fast. I ...
-1
votes
1answer
102 views
Why did I fail to build boost from source? [closed]
This issue is not the same as http://stackoverflow.com/questions/7644205/is-it-possible-to-have-an-unrelated-autotools-project-inside-an-autotools-projec
The error message is as follows:
...
1
vote
1answer
266 views
How can I install GCC on Mac OS X Lion without Xcode
I find it really hard to believe there is not simple solution to installing GCC on Mac without having to download and install 1GB+ of xCode. I found a site that helps reduce the amount of programs to ...
0
votes
0answers
86 views
Launch Webkit Gtk+ on ubuntu 11.10
I am using Webkit nightly build revision 110829 on Ubuntu 11.10. I successfully build it. Here is what I did:
In the Webkit directory I run:
Tools/Scripts/build-webkit --gtk
Built succeeded. I ...
1
vote
2answers
68 views
How can I find which of the extensions of OpenGL that differ from two machines is missing on the second machine?
I know this question may sound a little bit silly but I'd like to know if there is a way to do what I pretend without "Brute forcing".
I am developing a quit big application that uses some OpenGL ...
0
votes
0answers
62 views
I can't find any DTR workstation for programming [closed]
I am mainly a low level C++ (and occasionally Java) programmer and I want to find a notebook for my work, but it looks that all notebooks classes have totally non-useful features for programmers.
1) ...
3
votes
2answers
520 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 ...
0
votes
1answer
280 views
Multiple gcc on Mac OS X
I did a port install for gcc version 4.7.1 (MacPorts gcc47 4.7.1_2)
I named the executable as g+ and placed it in one my $PATH.
I use gcc 4.7.1 when I need c++11 standard. I haven't changed the ...
1
vote
3answers
205 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 ...
0
votes
0answers
123 views
Requerd Microsoft Visual C++ 2010 Redistributable Package stops installation
I have several installations that also installs Microsoft Visual C++ 2010 Redistributable Package. Because of it installations cant be finished reason is simple enough I have that package`s the ...