This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: c++ library problem
- To: alex001 at global dot co dot za
- Subject: Re: c++ library problem
- From: "Martin v. Loewis" <martin at mira dot isdn dot cs dot tu-berlin dot de>
- Date: Sat, 9 Oct 1999 22:01:37 +0200
- CC: gcc at gcc dot gnu dot org, gcc-help at gcc dot gnu dot org
- References: <000701bf1244$dceda0a0$8e48ef9b@heaven.global.co.za>
> 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