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
1
vote
1
answer
333
views
openSSL Key and Certificate
As far I know, in an authenticated SSL connection, both the client and server have private keys and provide their certificates (with the corresponding public keys) across the connection before ...
-1
votes
1
answer
4k
views
How can I compile C++ code into an independent Windows executable? [closed]
I've got a C++ program that I can compile and run on Mac OS 10.11 using g++. I also was able to compile and run it on Windows 10 using Visual Studio. However, when I tried to run the .exe file on a ...
-1
votes
1
answer
723
views
Execute Cloud9 compiled C++ code on Windows
I am currently using C++ in my Cloud9 (c9.io) workspace. I have created a program in Cloud9 that I would to distribute to a few other people. They are running Windows. How would I compile my C++ code ...
0
votes
1
answer
713
views
Nginx serving C++ cgi script: response is binary format
I am trying to run C++ CGI script on nginx. I am using FCGIWrap with script from nginx website. The program code is like this:
#include <iostream>
using namespace std;
int main ()
{
cout &...
-1
votes
1
answer
1k
views
How to compile C++ code in Notepad++
I'm trying to code in C++ using Notepad++. As far as I know, Notepad++ needs to have scripts compiled by an external compiler (if this is not true please let me know) so I'm looking at using Eclipse ...
3
votes
1
answer
29k
views
DEV C++ : No error while compiling any program but it is not running
All is working fine with DEV C++. Suddenly it stops working. The Program is compiling with no error messages. But when I hit the run button, nothing happens. This is happening with all programs. So ...
0
votes
1
answer
1k
views
Why do i get command prompt "... is not recognized as an internal or external command, operable program or batch file"
I got this problem as described by the link below,
C++ Hello World not showing output
and I was suggested to try opening the file using command prompt.
Here was what i did,
Command Prompt
Is ...
1
vote
3
answers
4k
views
Can not run basic C++ program VS 2015
I have installed Visual Studio 2015 on my Windows 10 PC in order to create a C++ simple program.
Even if I try to run a basic Hello World program like this:
#include <iostream>
int main() {
...
0
votes
2
answers
6k
views
How to stop infinite loop program after compilation [closed]
I am using turbo c++ , in college we were learning loop structure and were implementing it. But when I wrote while loop it shows the result infinite times and the turbo program get hanged . Is there ...
4
votes
2
answers
6k
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. ...
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 ...
0
votes
1
answer
2k
views
Saving from PuTTY (vim) to my local computer
I'm new to SSH stuff, linux, etc, but it's what my University uses for my introductory computer science class.
With that in mind, how do I save a file I opened from my University's server in PuTTY ...
1
vote
0
answers
798
views
Cannot run program due to "device is not ready" error
I have a 32bit Matlab mex function that was linked against OpenDDS libraries as well as my own custom ones. I made a Visual Studio 2010 setup project to deploy the necessary dlls to other machines. I'...
0
votes
1
answer
784
views
c++ console application on raspberry pi
how to run a VS2015 c++ console application on raspberry pi 2. I installed mono, copied the .exe file and try to run it. But it said "Cannot open assembly abc.exe: File does not contain a valid CIL ...
2
votes
1
answer
715
views
SSH2 connection issues on Ubuntu 14.04 - it randomly works when it wants to
So I've been digging around for a solution and cannot find an answer for this.
Setup: I am using Eclipse Mars (v4.5) running on Win7 with a Linaro ARM-Linux tool chain. Eclipse has a remote host setup ...
0
votes
1
answer
196
views
error installing cmder, which visual c++ redistributable do you suggest?
I have visual studio 2014 2013
cmder.exe says
this page https://github.com/bliker/cmder/issues/501 seems to suggest installing the visual c++ redistributable.. some say 2010, some say 2015.
I don'...
3
votes
1
answer
267
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 ...
0
votes
1
answer
3k
views
How to add/delete rules in Windows Firewall [closed]
I need to implement a tool which adds and deletes rules in Windows Firewall. The rules can be inbound or outbound, forbidding communication on specified protocols, IPs and ports. I am having trouble ...
0
votes
0
answers
513
views
How to kill all obtrusive messagebox recursion manually when they are opened very quickly and very many in Windows
Firstly, I do not asking for programming solutions, I just publish this code to show how this program work.
I tried this program below (in Virtual Box):
#include <iostream>
#include <string....
1
vote
1
answer
872
views
No function name highlighting in this special case
if I write a function in the following way:
int foo(int bar)
{}
Sublime highlights foocorrectly. However, in this case:
int foo
(int bar)
{}
foo loses all highlighting.
One of the things I ...
1
vote
0
answers
740
views
Change screen resolution without monitor under Linux?
I got a GUI program which will be executed along the OS (CentOS 6.6) boots.
The resolution configuration is programmed in the init part of the GUI program, my solution right now is get the resolution ...
1
vote
1
answer
10k
views
MSVCP120D.dll is missing from your computer
I made a C++ program in Visual Studio, and I wanted to show it to my friend. However, I'd never set up the visual C++ runtime libraries before, and so I started up a windows 8.1 virtual machine and ...
0
votes
1
answer
1k
views
Which GUI framework is used to make Ubuntu?
I'm interested to know, Which GUI framework is used to build ubuntu? As well i know it is built in C/C++. But what GUI is used to make Ubuntu?
Help would be appreciated!
2
votes
1
answer
5k
views
How to make Sublime Text 3 take user input?
I tried ctrl+shift+b when no user input was required and works just fine.
But when I had user input in my program, it shows me a “segmentation fault.”
How do I make it take user input?
EDIT :
I ...
0
votes
1
answer
608
views
How to delete a particular line in a text file after some operation on that text file at the same time
I am perl bginner (but i guess logic is same for all programming languages like C++ and C in my case its perl).
What i want to achieve ?
I have a text file i read that file which contains different ...
1
vote
0
answers
3k
views
Compiling gcc-c++ 4.9.2 -std=c++14 in CLion JetBrains IDE [solved]
I was trying to compile a cpp program using option -std=c++14 in CLion. But I got an error saying
g++ error: Unrecognized command line -std=c++14
It's working fine using -std=c+11.
My cmakeList.txt: ...
2
votes
0
answers
554
views
How to disable antialiasing in Eclipse?
My settings are
OSX Mountain Lion
java version "1.7.0_17"
eclipse cpp 4.4.1
Thunderbolt display
I have tried running in the terminal:
defaults write org.eclipse.eclipse AppleAntiAliasingThreshold ...
0
votes
1
answer
3k
views
Extract multiple strings between two words in a file
I have a text file made this way:
hjkhkhkjhkh<start:"xxxxxxxxxxxx:"alt>asdsadasd<start:"yyyyyyyyyyyyyy:"alt>gfhfg
hujhyfgh<start:"zzzzzzz:"alt>...........<start:"ttttttttttt:"alt&...
0
votes
3
answers
278
views
Running an executable on a Windows volume under Ubuntu
I have a dual-boot Windows/Ubuntu system. I have a executable file generated from a c++ file in a folder on a Windows volume (which is accessible on Ubuntu) and would like to run it on Ubuntu. The ...
0
votes
1
answer
3k
views
Wrong IP address returned from domain registered at No-IP
I want to connect a client and a server through the internet (using C++ and winsock2), so I registered a domain name for the server on No-IP, so that the client could determine it's IP address without ...
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 ...
0
votes
1
answer
4k
views
Installing vim syntax highlighting for C++11\14
I have a fresh installation of Manjaro linux 0.8.10 with vim 7.4 installed, and I'm unsuccessfully trying to enable syntax highlighting for c++11/14 using the script by Michael Small (which I've been ...
0
votes
1
answer
2k
views
Windows : How to protect process from getting killed in C/C++ [closed]
Is there any "GODLY" method through which i can protect my process from getting killed
either from:
1>Task manager
2>Command prompt -- forcefully kill
Things i tried :
1. Hooking Open Process and ...
0
votes
1
answer
2k
views
Port forwarding and C++ Winsock Client-Server applications
As the title says, I'm creating a TCP client and a server program in C++. My question is, when running the client and server on two separate machines that go through a different firewalled router over ...
-2
votes
2
answers
3k
views
GNU GCC compiler fails to compile when path contains spaces (C++)
I installed code::blocks and GNU GCC + SDK Stream (Open GL) exactly as described in tutorial
"Playing with OpenCL: Gaussian Blurring" by Lefteris. Why I cannot compile using spaces in path to library ...
0
votes
1
answer
754
views
Compile C++ 11 on Damn Small Linux?
DSL does not include any compiler (aside from a very basic ANSI C compiler), so I need to install g++ on it. Unfortunately the only gcc/g++ I could find for DSL linux is a version from 2006 (here).
...
0
votes
1
answer
480
views
Visual Studio C++ 2010 Express - the system can not find the file specified
I installed Visual Studio on Windows XP, I created project and imported files in it. E.g. when I click on the header file which I imported in the "Header Files" then the document is not opened in the ...
13
votes
2
answers
44k
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 ...
0
votes
2
answers
860
views
Why does a c++ code run significantly longer on one computer than another? [closed]
The code is exactly the same -- I copied it from one computer to another. The code is compiled with g++-4 (4.9.1) obtained from fink on OSX on both machines, and is not run in parallel.
Compiler ...
0
votes
1
answer
261
views
Beaglebone Black running Debian, does device tree overlay act as an api?
This maybe more of a Linux specific question but...
I've been reading many tutorials and it seems that you can use JavaScript, Python, and C++ to write code for the Beaglebone Black(BBB).
It looks ...
2
votes
2
answers
14k
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 ...
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/ ...
1
vote
1
answer
1k
views
Install C++ compiler on old MS-DOS computer with floppies
I have an old MS-DOS computer that I am experimenting with. The computer has an AMD 80386 processor, 1664 KB of RAM, a 50 MB hard drive, and two floppy disk drives: one 3 1/2 inches, the other 5 1/4 ...
0
votes
1
answer
449
views
i7 4770k or i7 4930k - Which for faster compile times? [closed]
I've looked up comparisons and found that single core performance seems to be better on i7 4770k, but has less cores that the i7 4930k. Would VS take advantage of extra cores when compiling, or would ...
0
votes
1
answer
3k
views
How to use MSBuild.rsp or otherwise specify default Visual Studio MSBuild.exe command line switches
I would like MSBuild.exe to always use the /MP option so that projects are always built with multiple cores. I tried adding /MP to the last line of my MSBuild.rsp (in the same directory as the ...
1
vote
1
answer
592
views
Slackware ./configure error
I'm new to slackware.
i'm trying to install freetds on my slackware 14.0 but i get this error when i run ./configure
config.log say:
gcc: error: unrecognized command line option '-V'
gcc : fatal ...
1
vote
1
answer
4k
views
How to customize Visual Studio C/C++ indentation/formatting beyond None/Block/Smart (Like Eclipse Can)
Is there a way to customize Visual Studio indentation/formatting in detail? There seems to be just three options: None, Block, Smart (in Options > Text Editor > C/C++ > Tabs). There are a couple ...
-1
votes
4
answers
3k
views
Do different compilers produce different machine code file formats for Windows? [closed]
Under Windows, if someone compiled a C++ source code with gcc, would the output file formats and extensions be different from other C++ compilers?
And are the output files extensions and formats of C+...
0
votes
1
answer
42
views
Lost fform design view in MS express 2010
Working on a windows forms project in MS C++ express 2010. It builds fully with no errors, runs correctly as a forms based application but in the solution explorer the icon for form1.h shows it as a ...
0
votes
2
answers
658
views
Number of lines in a video file
Okay guys copying and pasting video file with hex editor or with notepad++ hex editor plugin works totally fine.Now,i want to find the number of lines in a video file-
first)I opened the video file ...