Mail Archives: djgpp/1999/12/09/19:10:53
From: | "Supertheta" <supertheta AT hotmail DOT com>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Include and Library Files Error
|
Date: | Thu, 9 Dec 1999 18:30:16 -0500
|
Organization: | .
|
Lines: | 55
|
Message-ID: | <82pe7k$6fr$1@solaris.cc.vt.edu>
|
NNTP-Posting-Host: | hc652695c.dhcp.vt.edu
|
X-Trace: | solaris.cc.vt.edu 944782388 6651 198.82.105.92 (9 Dec 1999 23:33:08 GMT)
|
X-Complaints-To: | abuse AT vt DOT edu
|
NNTP-Posting-Date: | 9 Dec 1999 23:33:08 GMT
|
X-Priority: | 3
|
X-MSMail-Priority: | Normal
|
X-Newsreader: | Microsoft Outlook Express 5.00.2919.6600
|
X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2919.6600
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
Hello,
I am experiencing some difficulty while trying to compile a few C files
using DJGPP with RHIDE. Considering that I get the same error regardless of
whether I'm using GCC or compiling through RHIDE, I suspect the problem lies
with the former program (or, far more likely, my usage of it). Here is an
example of what happens:
C:\djgpp\Divida>gcc *.c
In file included from bitmaps.c:1:
bitmaps.h:5: allegro.h: No such file or directory
In file included from divida.c:1:
divida.h:5: pc.h: No such file or directory
In file included from divida.c:1:
divida.h:7: allegro.h: No such file or directory
In file included from divida.h:8,
from divida.c:1:
bitmaps.h:5: allegro.h: No such file or directory
stdio.h, which is also included in the C files, is correctly found.
However, both pc.h and allegro.h are also in the c:\djgpp\include directory
(along with stdio.h), and yet GCC apparently cannot find them. Here is some
other relevant(?) data:
OS: Windows 98 (running GCC and RHIDE through a DOS box)
GCC Version: 2.95; RHIDE Version: 1.4
Environment: DJGPP=c:/djgpp/djgpp.env (the file is in the directory
specified)
LFN in DJGPP.ENV: y (none of the files involved use LFN, though)
[gcc] in DJGPP.ENV:
COMPILER_PATH=%/>;COMPILER_PATH%%DJDIR%/bin
LIBRARY_PATH=%/>;LIBRARY_PATH%%DJDIR%/lib
Renaming DJGPP.ENV to something else has no effect on GCC's results
Directory structure is:
c:\djgpp\ -- DJGPP.ENV
c:\djgpp\bin -- .EXE files
c:\djgpp\lib -- .A files (including liballeg.a)
c:\djgpp\include -- .H files (including stdio.h, pc.h and allegro.h)
c:\djgpp\Divida -- my .C and .H files
Assuming I type in the \include and \lib directories into the appropiate
spaces provided in RHIDE, as well as adding the liballeg.a file to what
RHIDE passes to the linker, the C files do compile without error. However,
at link time, I get many (> 100?) unresolved external errors, mostly
regarding Allegro.
I have been RTFM for a couple of days now (including Section 8 of the FAQ),
without success. If anyone could offer some advice on how to fix this
problem, or post a pointer to where I can find a solution, I would be
grateful.
Supertheta
- Raw text -