H
H
Harrix2015-10-18 21:46:02
Programming
Harrix, 2015-10-18 21:46:02

Are there programs to update files in multiple projects?

There are several libraries that add functionality from time to time. They are in their folders. There are many projects that use library data, and the library data is placed in copies in them. Is there any standard way to update in library projects instead of doing it manually.
For example, there is the MathLibrary library, where the math.cpp and math.h files are located. And there are several projects where this library is used: Project1, Project2 and so on. And each project has a MathLibrary in the form of math.cpp and math.h files.
And suddenly the MathLibrary library was added and became more functional. And I would like the library to be updated in all projects. How to be?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
afishr, 2015-10-18
@afishr

I don't know how it's done, but I'm still going to guess. Is it possible not to use the math.cpp file itself, but, for example, a link to it (or a shortcut, I don’t know how to call it exactly). And then it is enough to update only one file, and all labels will also be updated.

A
Alexander Taratin, 2015-10-18
@Taraflex

For pluses, there will be no normal package managers until clang.llvm.org/docs/Modules.html is approved and this feature is not implemented in all popular compilers.

D
Dmitry Alekseev, 2015-10-19
@dalexeyev

A good way is to use a version control system like git or mercurial.
Store the library in a sub-repository that points to the library's repository on the server
. A less successful way is to add a goal in each project's Makefile to check if the library is updated on every build.
Even less successful is to store the library on a network drive, such as NFS or SMB.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question