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

learn more… | top users | synonyms

3
votes
1answer
200 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 ...
1
vote
1answer
35 views

Error while compiling with 'g++' using 'NPPExec' plugin with Notepad++

Everytime I try to run G++ from notepad++ portable I get this error I am trying to compile a simple hello world program. I'm positive that the directories and files exist, but I still get this ...
1
vote
1answer
988 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 ...
1
vote
1answer
119 views

Error compiling unittest++

I'm installing unittest++ on MacOS maverick, and come accross this compiling error: src/tests/TestXmlTestReporter.cpp src/tests/TestCurrentTest.cpp Linking TestUnitTest++... Running unit tests... :...
1
vote
1answer
838 views

Is it possible to run a 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 ...
1
vote
1answer
243 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&...
1
vote
1answer
465 views

How is character encoding inside Sakura done?

In the Sakura editor, you can have a .txt file with UTF-8 encoding, which contains 2 characters that are not available in EUC charset. When I saved a .txt from UTF-8 to EUC in the editor, it all ...
0
votes
1answer
17 views

g++ 4.9.2 in Cent OS 6.7 will compile but not link

I am using Centos 6.7 and have installed the devtools-3 distribution and "enabled" it to make gcc 4.9.2 the default. A simple C++ program that uses regex will compile , but does not link. // ...
0
votes
1answer
73 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 &...
0
votes
1answer
710 views

DEV C++ : No error while compiling any program but it is not running

All are working fine with DEV C++. Suddenly it stop working well. Program is compiling with no error messages. But when i hit run button nothing is happened. This is happening with all program. So ...
0
votes
1answer
120 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 ...
0
votes
1answer
102 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 ...
0
votes
1answer
385 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 ...
0
votes
1answer
301 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
1answer
194 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 ...
2
votes
0answers
160 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 ...
2
votes
0answers
433 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
500 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: ...
1
vote
0answers
15 views

What is the general strategy for troubleshooting visual C++ redistributable install “errors”?

I went to install Autodesk Inventor 2017 and got stuck without errors on "installing microsoft visual c++ redistributable 2012 x86 11.0.61030", so I tried to run the installer manually. It said it was ...
1
vote
0answers
151 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'...
1
vote
0answers
241 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
0answers
2k 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: ...
1
vote
0answers
108 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 ...
1
vote
0answers
305 views

guide to create debian package in netbeans

I've written a C++ application aided by netbeans on ubuntu. In netbeans there is a build feature to build debian package. When I build the package using it I am not getting desired result. The files I ...
1
vote
0answers
145 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 ...
1
vote
0answers
19 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
vote
0answers
666 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. ...
0
votes
0answers
11 views

Qt qbs, compile error: unable to locate 3rd party library file

I am working on a project which has several levels. Personally, I am new to qbs and there are not many document and examples on the internal about qbs. environment: Qt5.6.1; Qt creator 4.01; Ubuntu ...
0
votes
0answers
13 views

Start Mplayer without extra cmd window (on windows)

I know in Linux it's just (nohup mplayer video.flv >/dev/null &) && exit i want to do the same in windows , start the mplayer from cmd without the extra cmd window ,how can i do it ?...
0
votes
0answers
48 views

How do I sync a file between OneDrive and local storage?

Our school prescribed syllabus has only Turbo C++. I code on http://codeanywhere.com. It automatically saves my projects on OneDrive. Now, I want Turbo C++ to pick up files directly from OneDrive, ...
0
votes
0answers
8 views

how to compile ActionScript code in FlashDevelop IDE for creating a project file?

I am working on a project in which i need to compile ActionScript source code using FlashDevelop IDE but after successful compilation i cant see output window?
0
votes
0answers
67 views

Command prompt begins running .exe files but then stops working

I've been attempting to run some easy hello world programs on my command prompt in c++ and c# but after I compile them and attempt to run the .exe files the command jumps a line like it's going to ...
0
votes
0answers
25 views

VS 2015 - download standard c++ libraries

Currently I am developing the c++ homework in CodeBlocks but I want to switch to visual Studio 2015. In vS c++ is not installed and I have to download all the visual C++ Tools wich include the WIndows ...
0
votes
0answers
249 views

Visual C++ 2012 Redistributable Setup Failed

I'm having a major problem with Windows 10 and Microsoft Visual C++ 2012 Redistributable - 11.0.61030 package. After Windows installed it's latest updates all of my most important development programs ...
0
votes
0answers
57 views

prevent asl message to show up on /var/log/system.log

I'd like to define new asl facility in my project, and use it to generate asl log messages that wouldn't show up in /var/log/system.log (but only in the my pre-defined log file) here's my entire asl ...
0
votes
0answers
39 views

What is DDD trying to do when it gets busy after stopping on breakpoints and can I stop it preemptively?

Here's a common annoyance with DDD which I've experienced with many C++ projects. set a breakpoint, run and hit the breakpoint, right-click the display window and go to "New Display", click-drag to ...
0
votes
0answers
15 views

Windows driver for new image format?

I have designed a new image compression algorithm in my free time that sometimes even manages to reduce the file size of jpeg images! I have written it in c++, is there any way that I can install it ...
0
votes
0answers
24 views

Deskband on second monitor?

Is it possible to have a Deskband (taskbar toolbar) to be on the taskbar that is on Monitor #2? (Not the primary taskbar) I have two monitors in extending mode and the default Windows Taskbar on each ...
0
votes
0answers
426 views

Why doesn't visual studio 2015 RC compile properly?

I downloaded Microsoft Visual Studio 2015 RC after using Code::Blocks for a long time. To test it I just created a simple Hello World program, but it won't compile properly. This is the output from ...
0
votes
0answers
129 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....
0
votes
0answers
284 views

Running exe generated with GCC using cygwin without admin rights

So this awesome company that I work for has a picky IT department that doesn't allow developers to have admin rights. What is the best way to go about running a .exe generated from Cygwin GCC without ...
0
votes
0answers
210 views

File timestamps inconsistently update on network drive in Windows 7

This problem has been bugging me for a couple years now, and I have not been able to find a good solution. I develop code in both C++ and VB6. When I compile my C++ code in Visual Studio 2005, the ...
0
votes
0answers
689 views

-std=c++11 not working with Sublime Text 2 on Mac

So, I installed gcc 4.7 with ports. Manually compiling my file with g++ file.cpp -o file It spots an error. By appending the -std=c++11 it works like a charm. Now I edited my C++.sublime-build: { ...
0
votes
0answers
2k 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
273 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
169 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
344 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 ...
0
votes
0answers
237 views

Intel VTune Performance Analyser 9.1 not working on Win 7 64

Got the 32bit and 64 bit versions of the Intel VTune Performance Analyser. I installed the 64bit version (I think the installed was the "EMT" one) and when I go to create a new project, upon clicking ...
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
votes
0answers
16 views

Serial port info in Ubuntu

my first post. This is the actual code: int Open( //Serial port name. const char* pPortName, //Is IEC or DLMS used as starting protocol. bool IEC, //Maximum ...