This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: c++ library problem


> I am trying to create my own library with functions. I have created
> a .cpp file containing the functions, a .h containing the prototype
> of the function and another .cpp file calling the functions in the
> other .cpp file. I even recieved some examples form my lecturer
> which I know that the coding is right...but how do I compile it.
>
> Please explain to me the exact process on how to compile these
> files. I am new to c++ so don't asume that I will understand. Please
> be as detailed as possible. I have been battling with this for so
> long.

Maybe somebody else is going to respond in more detail to your
request, but there are three reasons why I, personally, won't go into
the level of detail you are requesting:

1. There is a number of books available, as well as on-line
   introductory material, and documentation. For books, you should
   consider one of the Linux books - they often cover compiler
   invocation. For online documentation, please have a look at the man
   pages, in particular gcc(1), ar(1), and ld(1).

2. You did not ask a specific question. Please try to phrase questions
   of the form: I tried X, expected to happen Y, but it actually
   happened Z. What is the problem?

3. Since you mentioned your lecturer, this looks like a task you have
   to solve for school. On the 'net, people don't help students to
   solve homework.

Regards,
Martin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]