Questions tagged [g++]

The tag has no usage guidance, but it has a tag wiki.

Filter by
Sorted by
Tagged with
0
votes
0answers
4 views

Notepad++ NppExec: Redirect to file using '>' registers it as an argument and does not work, even though it works on the command line

Looking at the code below, it simply converts a c or c++ file, e.g. main.cpp into its state after preprocessing, e.g. main_pp.cpp. However, running the command it generates, g++ -E "main.cpp"...
0
votes
1answer
10 views

Trouble updating G++ to version >5 using apt-get in Windows Subsystem for Linux

Context: I'm trying to run CMake as described here (under Linux-installing dependencies > Building OpenVDB). I'm in WSL. When I do so I get this error: CMake Deprecation Warning at CMakeLists.txt:...
0
votes
0answers
48 views

How many versions of clang, gcc, g++ compilers are installed on my linux system?

(Using Pop!_OS distro) I entered the following command in the terminal: dpkg --list | grep compiler And, I got this (only providing a part of the list for the sake of brevity): ii clang ...
0
votes
0answers
71 views

How can AddressSanitizer throw a SIGSEGV without additional info every time I'd like to launch a program?

Apparently, the message appears before the program code itself even starts to be executed. Here's the error message: pi@autoradio:/import/valen/autoradio $ ./autoradio ASAN:SIGSEGV ==================...
1
vote
0answers
146 views

Cannot install g++6 on alpine3.9

I need to install g++6 for building spidermonkey->couchdb on alpine3.9. I am unable to install it. Note that it is on the package list available on alpine 3.9 here. $ docker run -ti alpine:3.9 sh / # ...
0
votes
1answer
118 views

Charm4py/charm++, GCC error when installing

firstly I am going to explain the issue and at the bottom you'll find the question/-s. I'm trying to install charm4py using pip/pip3/apt (all of em), after 1.5 hours it fails and I notice it's charm++...
1
vote
0answers
60 views

Not able to run C++ code on Windows 8.1 Pro

I have installed the g++ compiler on my PC at my work place, downloaded from https://osdn.net/projects/mingw/releases/ here. I've also set the system path variable, but when I try to compile my code ...
0
votes
1answer
63 views

R g++ error installing survey package

i get a non-zero exit status by installing the survey-package in R version 3.5.2 on ubuntu 18.04. the problem seems to be related to g++ and the package minqa. in the output of the installation ...
1
vote
1answer
2k views

What exactly is g++?

There's one thing that I don't understand - and that is the question what is g++? I've searched for the wide web (in every way I've thought of, at least). No result yielded (the closest that I've ...
3
votes
2answers
2k views

How do I compile FFMPEG & Libaom without PIE

I am trying to compile FFMPEG and Libaom from source apparently because the gcc and g++ compilers in Ubuntu 18.04 by default has enabled the following option by default: --enable-default-pie $ gcc -v ...
1
vote
0answers
749 views

Docker container with centos 6.6 and c++

I'm trying to create a docker contaienr with CentOS 6.6 and c++: Step 1/37 : FROM centos:6.6 ---> 3d7ac13b921a Step 2/37 : RUN yum -y update ---> Using cache ---> b41e216c79de Step 3/37 : ...
0
votes
1answer
431 views

Eclipse: g++: command not found

I have installed Eclipse via System Workbench for STM32. Meaning I have an icon now named System Workbench for STM32, and when I open it Eclipse opens. With that IDE I can successfully create ...
1
vote
1answer
1k views

How do you change versions of gcc on windows?

I've been using g++ 4.8.1, mingw. Now, I've just updated to 6.3.0, however when I use g++ in command prompt it still seems to use the older version. How do you change between versions on windows?
0
votes
1answer
207 views

What is the windows cmd command equivalent to ubuntu command timeout 5s a.exe < input.txt

I am developing an online judge for my university. I need to timeout every program after 5 seconds for measuring time limit. my input is input.txt file and i am compiling and getting output in ubuntu ...
0
votes
1answer
171 views

Windows equivalent for unix regular expressions

Is there an replacement for **/*.* **/*.cpp so that i can do sth like this: gcc -std=c++14 -I ./include/ -o ./bin/main ./src/**/*.cpp (the way i go when i don't use any makefile) on windows i did ...
-1
votes
1answer
2k 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 ...
2
votes
2answers
1k views

compilation on cygwin64 doesn't work with g++ 4.9.2

I have GNU make version 4.0 g++/gcc version 4.9.2 Command make clean works perfectly But when I use command make to compile I got this error C:/cygwin64/lib/gcc/x86_64-pc-cygwin/4.9.2/cc1plus.exe:...
0
votes
1answer
3k views

Compiler tools, execv and “exec format error” under s390x chroot

I have a Debian 8 x86_64 machine with two chroot environments. The first is armel and the second is s390x. armel was installed last week, and s390x was installed recently. armel is fine both before ...
1
vote
0answers
79 views

G++ Compiler Stalls [CodeBlocks]

I am using CodeBlocks under Kali Linux and the g++ compiler stalls. SOMETIMES, I hit compile and at the bottom I get the message: g++ -fexceptions ...etc build main.o ... and NOTHING happens. If I ...
0
votes
1answer
185 views

Switch Server to use GCC version 4.8.1

I'm banging my head against a wall, I followed the instructions detailed here: https://superuser.com/a/677640 When I ran yum install devtoolset-2-gcc-4.8.1 devtoolset-2-gcc-c++-4.8.1 this was the ...
3
votes
2answers
13k views

How do I compile 64bit program with gcc/g++ on a 64bit Linux?

I'm using Ubuntu 10.04 LTS, and want to make a program to run on a large Debian server that has 300GB memory. With command: g++ Encoder.cpp -std=c++0x -m64 -o Encoder.o it returns something like ...
0
votes
1answer
673 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
2answers
472 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 ...
12
votes
2answers
6k views

Python ./configure does not find g++ compiler

I'm trying to compile Python 3.4.1 on an emulated ARM machine (with Debian 7). ./configure gives me checking for g++... no but g++ is installed. So what could be the problem? I know it's not ...
8
votes
2answers
25k views

Install GCC / G++ Version 4.9 in Linux Mint

I always like to have the latest version of things, particularly if that thing is gcc, g++ and there has recently been a revision to the c++ standard. I have forgotten what ppa's I need to add to my ...
0
votes
1answer
3k views

update gcc /g++ on Cent Os 5.9

I would like to update gcc/g++ on my Cent Os 5.9. The version I have is 4.1.2 : Would it be possible to update it to 4.4.7 like Cent Os 6.4 WITHOUT updating the entire operating system? It looks to ...
3
votes
1answer
4k views

Installing a GCC/G++ for my mac OSX 10.8

My problem is simple, I would like to get the OSX/BSD version of the GCC and G++ compilers from the GNU.org website. However after some research (as described below) I learned that Apple uses LLVM ...
1
vote
2answers
1k views

downgrade gcc/g++ after upgrading; compiler error

I just upgraded gcc/g++ from 4.4 to 4.8 (via this method How can I update gcc to the latest version in Ubuntu 10.04?). I realized that 4.8 is going to break a lot of my code and now I want to roll ...
1
vote
1answer
2k views

Sublime Text manually specify g++ location

Long story short, I'm using sublime to write some small C++ programs in my spare time. I'm currently on a Windows 7 box and I do not have administrative rights to adjust the Path Environment Variable ...
2
votes
2answers
17k views

Version `GLIBCXX_3.4.15' not found in CentOS (in file /usr/lib/libstdc++.so.6)

I try to use a program and I get the following error. /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found Under /usr/lib64 the libstdc++ I see is libstdc++.so.6.0.13 (and a soft link). ...
0
votes
1answer
832 views

Cygwin - updating an old verison of g++

I installed Cygwin but it appears the mirror I chose my packages from had very old versions on it. I am running g++ 3.4.4 but the latest release is 4.8.0 Whenever I went on the g++ website the .tar's ...
1
vote
2answers
1k views

How to install Valgrind on debian 6 ARM processor?

Title says it all. This file doesn't appear in 'apt-cache search'. My sources.list: deb http://ftp.us.debian.org/debian squeeze main non-free contrib How do I get this installed? Do I have to ...
2
votes
2answers
7k views

alias gcc='gcc -fpermissive' or modifying ./configure script

I am compiling quite big project from source. The compilation always ends with: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive] I have already compiled this project one year ...
2
votes
1answer
3k views

Add a permanent compiler option to g++

I am using a g++ 4.7 on Ubuntu 12.04 to compile my c++ code, and it won't be compiled unless an -std=gnu++11 option is added to my command like this: g++ -std=gnu++11 main.cpp Is there a way to add ...
0
votes
1answer
247 views

Unable to install software on Ubuntu 8.04

I have recently installed 8.04 Ubuntu onto an industrial board and applied the vendor kernel modifications to it. I need to develop applications on another desktop to run on this board in C++ but I am ...
1
vote
1answer
838 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 ...
1
vote
6answers
1k 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
9k views

Cannot install g++ on ubuntu

I don't have g++: erelsgl@ubuntu:/etc/apt$ which g++ erelsgl@ubuntu:/etc/apt$ erelsgl@ubuntu:/etc/apt$ g++ The program 'g++' can be found in the following packages: * g++ * pentium-builder Try: ...
1
vote
2answers
4k views

Can't install build-essential on Ubuntu Jaunty 9.04

Here's my /etc/apt/sources.list: #deb cdrom:[Ubuntu 9.04 _Jaunty Jackalope_ - Release i386 (20090420.1)]/ jaunty main restricted # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade ...
0
votes
1answer
1k views

g++ in Knoppix 6 LiveCD

To avoid the inevitable, let me put this in context. I am instructing an Intro to Unix course this semester and the students are using Knoppix 6.4.3 off the LiveCD. They are not required to install ...
0
votes
1answer
782 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 ...