the problem continues :-(

Pablo Hörtner pablo at slp.at
Mon Nov 26 14:06:08 PST 2001


sorry, i thought i wouldn't go to disturb you any more with my silly questioning but:

gcc  nalfs.o parser.o win.o utility.o child.o editor.o handler.o timer.o handlers/handlers.a  -lform -lncurses -lexpat -o
nALFS
/usr/bin/ld: cannot find -lexpat
collect2: ld returned 1 exit status
make[1]: *** [nALFS] Fehler 1
make[1]: Verlassen des Verzeichnisses Verzeichnis »/home/My Distro/LFS/nALFS/src«
make: *** [src] Fehler 2

who would expect?! ;-)
what's the problem with the rpm-package? why didn't it install correct?

as you might have noticed, i'm pretty new to programming/c++ and do only have some experiences with (ba)sh-scipting (only
what's really necessary for my necessities :-) )

i promise you i'm going to read the c++ howto but meanwhile it would be usefull to know how to tell the linker where the
expat-header is situated. doesn't the linker always search in /usr/include by default?

[root at redtux nALFS]# ld -l expat
ld: cannot find -lexpat

and

[root at redtux nALFS]# ld -l expat.h
ld: cannot find -lexpat.h

did not work (most likely because i've done s/th wrong?!)
and

[root at redtux nALFS]# ld -L /usr/include/ -l expat.h 
ld: cannot find -lexpat.h
[root at redtux nALFS]# man ld
[root at redtux nALFS]# ld -Ll /usr/include/expat.h 
/usr/include/expat.h: file not recognized: File format not recognized

did neither (i just tried everything i found - no idea whether the syntax i used is correct!! :-) )

cu
ph

On Mon, 26 Nov 2001, Neven Has wrote:

> On Mon, Nov 26, 2001 at 08:59:58PM +0100, Pablo Hörtner wrote:
> > parser.c:29:19: expat.h: Datei oder Verzeichnis nicht gefunden
> > make[1]: *** [parser.o] Fehler 1
> > make: *** [src] Fehler 2
> 
> In addition to other replies, have you tried copying expat.h to
> /usr/include? Copying it to nALFS/src/ won't help you much.
> 
> 
> Neven
> 
> 

-- 
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~    
                    PABLO HÖRTNER    
                    pablo.hoertner at web.de    
                    ICQ: 95509594    
                    www.slp.at   (O:    
                    Kill capitalism before capitalism kills Kenny!    
                    LONG LIVE THE PENGUIN AND    
                    WORKERS' WORLD REVOLUTION!!!    
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe alfs-discuss' in the subject header of the message



More information about the alfs-discuss mailing list