How to set up complex projects?

I am programming a little, purely for myself. I just want to have a stab at something more serious.

Everything I write is converted into a single executable file (regardless of the number of source code files). But how to create a project, the compiler which I have there would be a corresponding structure of multiple related files, e.g., one executable and a few libraries?

I'm an academic interest in radio learning Rust, and the IDE for it as such does not exist, so I plan to use for this purpose, VIM.
In response, I will approach examples of the configuration and Secondly for C/C++, or theoretical explanation, as do the classic IDE.
July 2nd 19 at 17:48
2 answers
July 2nd 19 at 17:50
Solution
Is created in parts a few individual folders with source code for each separately invoke the compiler-linker that is passed to all source code files located in this folder, so multiple executables, there is nothing supernatural about any connection between the modules the compiler need to know.

a single executable and a few libraries?

Libraries are all exactly the same as the executable, only set to a special option (command line switch) to the compiler, the linker, which indicates that you want to create a library that will not be the entry point, etc.

examples of settings and Secondly for C/C++

This is unlikely to have in Vim, likely you will need to make to master, it does the same thing that I described the paragraph above, but all the settings you save in a file (script), then it is sufficient to just call the make command without any arguments and it will apply all settings.
But make only works with C/C++, or she is in principle not an important language? - Mackenzie.Durgan commented on July 2nd 19 at 17:53
: Have not tried, but rather "fancy" stuff, can certainly any compiler "tie", and she also has open source code, if you have it with really Rust so bad, then why not make a fork... - mazie.Towne commented on July 2nd 19 at 17:56
Some people with make build projects using JavaScript. Draw your own conclusions. - Justice.Nienow commented on July 2nd 19 at 17:59
There are not Windows or large enterprise, there when used correctly everything works with everything, because so intended :)

Make - this is essentially zapuskalku command. So it can even feature in a mortar to draw - would be knowledge. - sibyl_Pur commented on July 2nd 19 at 18:02
July 2nd 19 at 17:52
In rust to create modules and libraries are used the so-called crates and modules.
If you're new to programming, I would advise you to choose the python language(version 3), because it is very simple(learning per week) and make it your library or project from multiple files is very simple.
+ for python there is a free IDE pycharm community
Modules and containers are not the same. They are ultimately compiled into the same executable file as the main program, as I understand it. - Mackenzie.Durgan commented on July 2nd 19 at 17:55
If you're new to programming, I would advise you to choose the python language(version 3), because it is very
simple(learning per week) and make it your library or project from multiple files is very simple.


A language without static typing is not the best way to begin.

He is the type as it is easier.

1) But miss an important point of programming. Python works with types for you, and it is a cornerstone of programming.

2) do Not receive a clearly written error, not getting enough accurate suggestions as you type. - mazie.Towne commented on July 2nd 19 at 17:58

Find more questions by tags VimProgrammingIDEDesigning software