Mail Archives: djgpp/1998/11/23/01:42:51
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 <allegro.h>
> #include <jgui.h>
>
> 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.
- Raw text -