S
S
SKEPTIC2019-11-02 18:29:36
linux
SKEPTIC, 2019-11-02 18:29:36

How to develop and how to run a C++ program in Linux?

How to develop and how to run a C++ program in Linux?
Which project type to choose in Visual Studio?
Is the code for linux the same as for windows?
How to run c++ code in linux?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Armenian Radio, 2019-11-02
@gbg

we2.jpg
1. Learn. Starting with simple Hello world programs and moving up to complex ones. In C++, you can improve your skills indefinitely, and something worthwhile will start to turn out in about a year and a half, and that's not a fact.
2. Eh... developing under Linux on Windows is a perversion. Well, that is, you can do this, but the compilers are different, where the code rolls in VC, GCC will send it to the foot erotic one with a bunch of errors, plus different requirements for file paths in #include - in short, writing a program that will be built under Windows , and under linux, it requires a vicious qualification , knowledge of two systems, two compilers, and the C++ standard.
3. see 2.
4. Compile and run.

Z
zergon321, 2019-11-02
@zergon321

Why exactly C++ ? If cross-platform application is needed, then there are many other languages ​​for this, both interpreted ( Python , Java ) and compiled ( Go , Rust ), the latter are an excellent replacement for C ++ , which in our time is better to forget altogether if you don’t developer on Unreal Engine 4 . Seriously, it is unrealistic to master it at such a level in a reasonable time that you can write well on it. And even if you master it, then the saying will come into play: "one C ++ programmer will not be able to understand the code of another C ++ programmer ".

C
CityCat4, 2019-11-02
@CityCat4

How to develop and how to run a C++ program in Linux?

You open your favorite text editor (I use the banal mcedit), write the code. Compile and run :)
No. Forget about Visual Studio, If Linux has GUI, you can use something like KDevelop
Not
./myprogram

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question