Date: Mon, 23 Nov 1998 08:40:59 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Chia cc: djgpp AT delorie DOT com Subject: Re: More Library Stuff In-Reply-To: <739nae$k5f@nnrp2.farm.idt.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com On Sun, 22 Nov 1998, Chia wrote: > I've got all the library sources compiling successfully, and I ar'd them > into libjgui.a. I then ranlib'd it and copied it to my /djgpp/lib directory. > I then took the main header file, jgui.h, and copied that to my > /djgpp/include directory. > > Then, I tried to compile a simple program with it, which used the "Desktop" > class from the library. > > The program had > #include > #include > > And was compiled with: > gxx test.cpp -o test.exe -ljgui -lalleg > > This gave me a message that the Desktop class was undeclared. The steps that you describe are all okay. So I'd guess the devil is in the details. For example, it's possible that the source code of your library or the header jgui.h have some programmatic error. If you cannot figure this out, I suggest to post the exact error message(s) you get from the linker, and the code fragments near the lines whose numbers are reported in the error messages.