[H-GEN] Compiling error....

Andrae Muys a.muys at mailbox.uq.edu.au
Mon Jul 19 23:41:11 EDT 1999


(Note reply-to: being general at humbug.org.au vs Andrae Muys <a.muys at mailbox.uq.edu.au>)

On Mon, 19 Jul 1999, Craig Eldershaw wrote:

> (Note reply-to: being general at humbug.org.au vs Craig Eldershaw <celdersh at parc.xerox.com>)
> 
> >c++ -Wall -O2 `gtk-config --cflags` -lpthread nt.cc base64.o queue.o
> >liststr.o dlist.o mdlist.o locstr.o log.o  sort.o meter.o socket.o history.o
> >hproxy.o client.o ftp.o http.o download.o ftpd.o httpd.o signal.o main.o
> >config.o savelog.o mainlog.o var.o  face/lmenu.o face/list.o face/addd.o
> >face/graph.o face/log.o face/prefs.o face/buttons.o face/about.o face/edit.o
> >face/colors.o face/saveload.o -o nt `gtk-config --libs`
> 
> >bash> gtk-config --cflags
> >bash> gtk-config --libs
> 
> Well they seem innocent.
> 
Ahh craig you missed something.

c++ -Wall -O2 `gtk-config --cflags` -lpthread nt.cc
                                    ^^^^^^^^^

Putting a library before a source file is not normally supported by most
compilers.

Try the following.

c++ -Wall -O2 -c `gtk-config --cflags` nt.cc

c++ -Wall -O2 $(OBJS) -lpthread `gtk-config --libs`

Note you may need to add -DPOSIX_THREADS or some such thing (I don't quite
recall) to enable the thread safety in some of the header files.

Anyway, the -lpthread nt.cc is definately a problem.

Andrae

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Andrae Muys              "Never ascribe to malice that which is adequately
andrae at humbug.org.au      explained by incompetence." - Napoleon Bonaparte


--
This is list (humbug) general handled by majordomo at lists.humbug.org.au .
Postings only from subscribed addresses of lists general or general-post.



More information about the General mailing list