delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/07/21/09:00:16

From: "Daniel Noorduin" <w DOT noorduin AT chello DOT nl>
Newsgroups: comp.os.msdos.djgpp
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1020721083326 DOT 8648J-100000 AT is>
Subject: Re: Installation Problem
Lines: 65
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Message-ID: <o1y_8.977188$yP6.31293878@Flipper>
Date: Sun, 21 Jul 2002 12:45:08 GMT
NNTP-Posting-Host: 212.187.58.222
X-Complaints-To: abuse AT chello DOT nl
X-Trace: Flipper 1027255508 212.187.58.222 (Sun, 21 Jul 2002 14:45:08 MET DST)
NNTP-Posting-Date: Sun, 21 Jul 2002 14:45:08 MET DST
Organization: Chello Broadband
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il> wrote in message
news:Pine DOT SUN DOT 3 DOT 91 DOT 1020721083326 DOT 8648J-100000 AT is...
>
> On Fri, 19 Jul 2002, Daniel Noorduin wrote:
>
> > I'm a newbie trying to learn C and C++, but i'm having trouble setting
up
> > djgpp. I keep getting the following error message when I try to compile
even
> > the simplest C program:
> >
> > c:\djgpp\bin\ld.exe: cannot find -lc_alias
>
> Please add -v to the compiler command line, and post here everything that
> it prints during compilation/linking.

Hey, thanks man! Thanks to that -v suggestion i finally seem to be getting
somewhere. Here is what it says when i try to compile something:

gcc version 3.1

c:/djgpp/lib/gcc-lib/djgpp/3.1/cc1.exe -lang-c -v -D__GNUC__=3 -D__GNUC_MINO
R__
=1 -D__GNUC_PATCHLEVEL__=0 -D__32BIT__ -D__EMX__ -Di386 -D__32BIT__ -D__EMX_
_ -D
__i386__ -D__i386 -Asystem(unix) -Asystem(emx) -Acpu(i386) -Amachine(i386) -
D__N
O_INLINE__ -D__STDC_HOSTED__=1 blah.c -quiet -dumpbase blah.c -version -o
c:/djg
pp/tmp/cciNytsY.s
GNU CPP version 3.1 (cpplib) (80386, BSD syntax)
GNU C version 3.1 (djgpp)
        compiled by GNU C version 3.1.
ignoring nonexistent directory "c:/djgpp/djgpp/include"
#include "..." search starts here:
#include <...> search starts here:
 C:/RSXNT/INCLUDE
 c:/djgpp/lib/gcc-lib/djgpp/3.1/include
 c:/djgpp/include
End of search list.
blah.c:8:2: warning: no newline at end of file
 c:/djgpp/bin/as.exe -o c:/djgpp/tmp/ccl8GcQn.o c:/djgpp/tmp/cciNytsY.s
 c:/djgpp/bin/ld.exe -o blah.exe
c:/rsxnt/lib/crt0.o -Lc:/rsxnt/lib/st -Lc:/rsxn
t/lib -Lc:/djgpp/lib -Lc:/djgpp/lib/gcc-lib/djgpp/3.1 -Lc:/djgpp/bin -Lc:/dj
gpp/
lib -Lc:/djgpp/lib/gcc-lib/djgpp/3.1/../../..
c:/djgpp/tmp/ccl8GcQn.o -lc_alias
-lgcc -lc -lc_app -lc -lgcc -lemx -los2 -lemx2
c:/djgpp/bin/ld.exe: cannot find -lc_alias

It seems to be some kind of path problem. It seemed to be looking for header
files in C:/djgpp/djgpp/include, while the actual files are in
C:/djgpp/include. When i put the include directory under C:/djgpp/djgpp/ by
creating another djgpp folder and moving the include folder in it, it will
actually compile (Yippee!), but some other stuff wont work (Like Rhide).
Could this problem be the result of having two different compilers installed
on my computer (DJGPP and RSXNT)?? And does anyone know of a decent way to
fix this??





- Raw text -


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