Mail Archives: djgpp/1999/10/07/02:47:21
dodger wrote:
>
> I've been using DJGPP to help me learn platform independent C++ (or as
> close as I can get it anyway).
>
> I've recently created a simple parse class (C++) that I want to
> distribute as a library (mainly so that I can learn how to create
> libraries and distribute them). After talking to a few friends, I've
> determined that what I want to do is compile my code to a .lib file
> and then distribute it along with the .h header file. But since none
> of them know DJGPP, they can't tell me exactly how to do that.
Your friends are right, except that, for DJGPP, the libraries you create
will be a .a file. Because DJGPP uses a object file format from any
other DOS based compiler, the .a file can be used only by other DJGPP
programs.
> I've been poring over the command-line documentation (what I can find,
> anyway), but I can't seem to find what I'm looking for. Can somebody
> tell me what I need to do or at least point me in the right direction
> where I can find some information on this?
Look at "gcc -c", "ar", and "ranlib", all hidden in the info files
somewhere.
> Learning C++ is time consuming enough, but trying to learn how to use
> compilers often seems like a daunting task. (The bulk of my
> programming experience is with all-in-one development enviroments.)
Luckily, what you learn with DJGPP is the GNU C compiler, which has been
ported to many many platforms. What you learn will be useful for a long
time to come. Unlike Visual Studio, which has a habit of rearranging
the menus from version to version.
--
Weiqi Gao
weiqigao AT a DOT crl DOT com
- Raw text -