I want to write a project solving n equations of n variables,and it needs a header and source file for matrix operations ,a header and source file for solving the problem & a header and source file for instream and outstream.
The basement of the Code is not a problem ;If it was a single source that would be easy...
My Question is :
1- where should the function declare or define?(notice that also in matrix operation source & solving source we need some of matrix operation function!and I think it's impossible to define a function twice!:-?)
2-How to link them all ?I mean how would you use a function defined in other? How would you compile them all together and by themselves?
So you want to solve a linear equation system of kind none homogenous or may be a kind of homogenous, and you have the source code(matirx-solver) to do it for.
If I do not misunderstand you, you have the source code and not a static or dynamic library( not dll ). If so, you dot not need to link :-)
All you have to do is to add the source-code folder to your project, and inlcude the header file of the matirx-solver in your application. Than use all it features :-) Depending on IDE you use, it may be very easy to import the source-code, or to include the code in your project.
Actually the library that you are using should have documentation where it tells you how to use it :-) If it does not have any documentation than, you may better look for a new library :-(
A Library could be very powerful but if it is not well documented, if it does not have a well written user's guide and examples. For me it is a waste of time, to try to learn how to use the library from source code :-)