www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/11/27/09:05:57

Message-Id: <3.0.16.19971027145925.37af59b4@hem1.passagen.se>
Date: Mon, 27 Oct 1997 14:59:28 -0500
To: hbs AT informatik DOT uni-kiel DOT de (Henrik Schmidt)
From: Peter Palotas <blizzar AT hem1 DOT passagen DOT se>
Subject: Re: Jlib compiling problem
Cc: rogerwh AT aa DOT net, djgpp AT delorie DOT com
Mime-Version: 1.0

At 09.10 1997-11-27 GMT, you wrote:
>In <880580292 DOT 614412 AT moon DOT aa DOT net> "Roger W. Huggins" <rogerwh AT aa DOT net> writes:
>
>>Hopefully someone can help me with installing J-lib ver. 1.8 with DJGPP.
>>After copying the files jconfig,jtarget.h, and makefile to the jlib\source
>>directory and running make the DJGPP compilier gave me this error:
>
>>E:\Jlib8\JLIB\SOURCE>make
>>gcc -g -Wall  -c target/dj_vesa/palette.c -o target/dj_vesa/palette.o
>>target/dj_vesa/palette.c:3: jlib.h: No such file or directory (ENOENT)
>>make.exe: *** [target/dj_vesa/palette.o] Error 1
>
>>I did everything I was supposed to according to the directions, so If anyone
>>can help, I would appreciate it.
>
>Add "-I ." to CFLAGS in the makefile.
>It tells the compiler where to look for include files besides the
>standard locations.

Changing the makefile is never a good idea... Oh well, sometimes it is, but
just installing a package shouldn't require any changes of the makefile and
it doesn't in this case either.

The following was taken from the JLIB documentation:

----------------------------------------------------------------------------
----
Choose target configuration options
The file jlconfig.h contains configuration information, which is used to
control the way the library is built. You should customise jlconfig.h to
your liking. Each line is commented to allow you to decide which options to
use. 

When you have made your changes, copy the three header files in the
jlib/source directory (jlib.h, jlconfig.h, and jltarget.h) to the standard
include directory of your compiler.
----------------------------------------------------------------------------
----

I.e. copy jlib.h, jlconfig.h, jltarget.h into the standard include
directory of your compiler, which typically for djgpp is %DJDIR%/include/.

This will solve your problem.


-- Peter Palotas alias Blizzar -- blizzar AT hem1 DOT passagen DOT se --

*****************************************************
* A brief description of DJGPP:                     *
* NEVER BEFORE HAS SO FEW DONE SO MUCH FOR SO MANY! *
*****************************************************

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019