how to run compiled project in windows - c++

I started to get acquainted with c ++ and there was a problem. I can’t understand how I can compile and test. I installed the compiler in vm Linux and configured the clion on a remote host. I connected the gtk to develop the interface and when I compile I get this 1.
How can i run it? If i am do this from clion getting this error
Gtk-WARNING **: 12:53:54.419: cannot open display: :0, so i need run it in windows without install something. Help me pls.
cmakelist.txt

Related

C++ Programing with Visual Studio Code - "exe is not compatible with the version of Windows you're running."

I am a novice programmer who wants to make some contributions to a C++ repository on Github.
Given that please be patient with if I am missing the obvious. I've tried searching for the answer and poked at the problem for serval hours but am simply stuck.
When I try to run the SolveSpace.h file the complier gives an error:
[Running] cd "c:\Users[directory location]\git\SolveSpace\src" && g++ solvespace.h -o solvespace && "c:\Users[directory location]\git\SolveSpace\src"solvespace
This version of c:\Users[directory location]\git\SolveSpace\src\solvespace.exe is not compatible with the version of Windows you're running. Check your computer's system information and then contact the software publisher.
The executable from the repository's site comes as a windows portable file which runs just fine on my computer. The repository I forked is the source code.
Currently I have MiniGW installed as the complier.
I have the following plug-ins installed for VSC:
Better C++ Syntax
C/C++
C/C++ Compile Run
CMake
CMake Tools
Code Runner
This is the repository I am trying to compile without any modifications: https://github.com/solvespace/solvespace
Thank you

Exec Format Error using Codelite IDE and Ubuntu

I am trying to run a C++ program using the IDE Codelite on an Ubuntu 18.04.5 LTS computer with MinGW compiler (i686-w64-mingw32). When I execute it gives the error "Exec Format Error". I can't figure out how to fix this. I appreciate any advice.
You say you are trying to run a program, correct? MinGW is a cross-platform toolchain for Windows. Nothing you build with it will run natively on Linux. Use GCC if you want to write an application you can run.
When you say "execute", do you mean build using Codelite or execute the program? A Codelite error could be a bug, or a misconfigured setting, or something. A simple google of "exec format error" told me the error came from an app failing to execute. It is typically followed by a description, such as "permission denied". It is most likely, however, to be because you are trying to execute a windows application.

Can't target WSL from VS 2017 - Error Could not find 'zip' archiver

I was attempting to setup VS 2017 15.7.6 to compile a console app I have for Linux. Then I was going to attempt to target WSL.
Following this:
https://blogs.msdn.microsoft.com/vcblog/2017/02/08/targeting-windows-subsystem-for-linux-from-visual-studio/
I get to the Connect Remote System step and add enter in the information, choose Connect and get:
Error Dialog "Downloading and updating headers for Intellisense" pops up with the text "An error has occurred. Could not find the 'zip' archiver, please install it using your system package manager..."
I'm assuming I need to issue an apt-get command from my WSL prompt. But I'm not sure which one.
Anyone else run into this?
I'm very new to WSL and Linux.

Error while using Visual studio Remote GDB debugger

I have tried with no success for a good 4 hours to debug a program using Visual studio remote debugger and I keep getting the same error message:
could not launch gdbserver. gdbserver could either be missing on your system and need to be installed, or it failed to start the program.
-My attempted solutions so far:
I logged into the Linux (fedora)remote system and installed gdb, and all the required depencises. However I get another message saying:
no package gdbserver available.
Is there a difference between gdb and gdbserver?
Realizing that I was not succeeding with the Fedora I decided to try and install gdb/dependencies on a Centos7 system. Going to Visual studio and launching the remote debugger. I still get the same error message.
Your expertise will be very appreciated
i installed the gdbserver this works for me on the raspberry pi
sudo apt-get install gdbserver

Launch Failed. Binary not found. Compile and run C++ in eclipse for Java SE?

I have looked at various questions and other websites regarding this. I'm not able to find and proper solution
I have downloaded Eclipse which came along with the Android Development Tools. I'm using the the same eclipse for running java programs. Now that i want to run C/C++ programs,
I downloaded and installed the CDT plugin for eclipse.
Then I downloaded minGW, set the environment variable "Path" under system variables to the "bin" directory of minGW
But when I run the program, it gives and Error "Launch Failed. Binary not found."
Please help me resolve this issue
Thank you