Index: [thread] [date] [subject] [author]
  From: Christoph Egger <Christoph_Egger@t-online.de>
  To  : ggi-develop@eskimo.com
  Date: Sat, 27 Mar 1999 13:59:23 +0100 (MET)

Re: compiler error on libggidemos

On Sat, 27 Mar 1999 becka@rz.uni-duesseldorf.de wrote:

> Hi !
> 
> > > I can't compile two libggi-demos in the directory degas/lib/libggidemos.
> > > The error-message are the same:
> 
> > > cc -o subdemo subdemo.o -lggi -lm  -lpthread
> > > cc -o spinmodule spinmodule.o -lggi -lm -lpthread
> 
> Please use the Makefile to generate these. Spinmodule gets compiled into a
> dll.
> 
> In case it still fails, you might want to try Marcus' suggestions:
> 
> > Looks like a broken pthread library to me.
> > You could try compiling with -D_REENTRANT and explicitly linking 
> > with -lc though. (You are using Linux, right?)
> 
> I'll include the -D_REENTRANT in the Makefile ... missed that.
> Maybe that caused some problems when running on X ...
> 

Both suggestions are failed:

bash$ make
cc -D_REENTRANT -lc -o subdemo subdemo.o -lggi -lm  #-lpthread
subdemo.o: In function `main':
subdemo.o(.text+0x69a): undefined reference to `pthread_create'
subdemo.o(.text+0x6b6): undefined reference to `pthread_create'
subdemo.o(.text+0x115e): undefined reference to `pthread_cancel'
subdemo.o(.text+0x1641): undefined reference to `pthread_cancel'
subdemo.o(.text+0x164f): undefined reference to `pthread_join'
subdemo.o(.text+0x165d): undefined reference to `pthread_join'
make: *** [subdemo] Error 1

Christoph Egger
E-Mail: Christoph_Egger@t-online.de

Index: [thread] [date] [subject] [author]