Skip to main content

Questions tagged [g++]

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

2 votes
0 answers
271 views

Is it possible to use Libtorch with VS Code?

I have followed the instructions provided by Pytorch to installing C++ distributions of PyTorch: https://pytorch.org/cppdocs/installing.html However, this command produces an error: cmake --build . --...
Mattpats's user avatar
  • 121
1 vote
1 answer
8k views

Cannot find g++ after msys2 install

I want to install g++ so I can compile and run C++ code in VScode. I started by trying to follow the VSCode-provided guide which states I need to install mysys. I tried installing msys2 per the given ...
Solebay Sharp's user avatar
5 votes
1 answer
15k views

How can I properly configure the g++ include path with mingw64?

I have installed msys2/mingw64 because I need the g++ compiler. Now, I want to compile some c++ oce which requires openblas. I have installed the package using pacman -S mingw-w64-x86_64-openblas. ...
HerpDerpington's user avatar
0 votes
1 answer
406 views

Installing gcc 4.7.2 in MacOS (Monterrey)

I am trying to install gcc 4.7.2 (I need this version in order to be able to compile an old code), but I can not seem to find a proper way to do it. It looks like the only available options is to do ...
Eideann's user avatar
0 votes
1 answer
1k views

How to compile text file to exe file with G++

I have c++ code saved in .txt file. Can i somehow format it with g++ compiler or i\ must change it to file.cpp? Is there why how to compile a .txt file with g++? Thanks for answare.
Filip's user avatar
  • 5
0 votes
2 answers
1k views

How can I get g++ 7+ on windows 10?

I have just installed g++ using MinGW. When I tried g++ --version it says, that it is 6.3.0: g++ (MinGW.org GCC-6.3.0-1) 6.3.0 Copyright (C) 2016 Free Software Foundation, Inc. This is free software; ...
galaxy001's user avatar
  • 103
0 votes
1 answer
930 views

What is a purple file from the LS command?

I am working on a c++ project and had a failed compilation (normal kind of errors). When I ran ls (a bit of a habit), it showed a file with a seemingly random sequence of characters: '!4'$'\377\377\...
weirdpusheen's user avatar
0 votes
1 answer
148 views

Can g++ compilers be used to build linux software on macos?

On windows I am able to develop for linux using WSL2. I ususally use CLion which allows me to switch between msvc and g++ with a flip of a switch. Is it possible to do the same thing on Mac? If so, ...
CiaranWelsh's user avatar
  • 3,266
-1 votes
1 answer
204 views

Conditional statements with braces versus without braces - which is fast in C, C++ [closed]

I know this is silly, but I'm quite curious to know that is there any speed difference using conditional statement (i.e. for, if, while, do while) in C++ with braces and without braces. FYI : I know ...
Deepam Gupta's user avatar
0 votes
2 answers
385 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"...
Doot's user avatar
  • 123
0 votes
1 answer
112 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:...
Jeff Demanche's user avatar
2 votes
0 answers
492 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 / # ...
Mihir's user avatar
  • 21
0 votes
1 answer
186 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++...
z0zz0's user avatar
  • 1
1 vote
0 answers
149 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 ...
Shashank Kadambri's user avatar
0 votes
1 answer
158 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 ...
Winfried's user avatar

15 30 50 per page