4
If I have 10 projects in Netbeans, these 10 projects will use a log recording system, this system contains a log. h and a Log.c. Since all projects will have to use these two log files to generate logs, I will need to copy the two files for each project. But this causes a problem, for example: if I will change the Log. c I will have to change in all projects. In this case, there is some way to include these two files in all projects without having to copy the two files for each project?
One idea is to make a library/library with Log. c and include Log. h in the files that use the Log.c. functions. I don’t put this as an answer below because I’m not sure how to do this in Netbeans. You should also be able to add the same Log. c to 10 projects, and get a single Log. c file for all.
– njsg
Why are the tags [tag:c#] and [tag:java] part of this question?
– Luiz Vieira
An error, I’ve corrected.
– Vynstus