Skip to main content

All Questions

Tagged with
2 votes
0 answers
278 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
9k 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
0 votes
1 answer
149 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,276
-1 votes
1 answer
205 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
1 vote
0 answers
150 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
993 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 ...
Michel Keijzers's user avatar
-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 ...
aswine's user avatar
  • 137
0 votes
1 answer
760 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). ...
notadam's user avatar
  • 718
0 votes
2 answers
876 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 ...
Stershic's user avatar
0 votes
1 answer
288 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 ...
mathematician1975's user avatar
1 vote
1 answer
867 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 ...
user23127's user avatar
  • 211
1 vote
6 answers
2k 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 ...
user avatar
0 votes
1 answer
1k 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 ...
vonhogen's user avatar
  • 2,409