[Q] python embedding Demo

Skip Montanaro skip at pobox.com
Fri Jun 22 07:57:46 EDT 2001


    cyblue> -------------
    cyblue> gcc demo.o
    cyblue> usr/lib/python1.5/config/libpython1.5.a  -lsocket -lnsl -ldl  -lreadline -lt
    cyblue> ermcap -lm -o demo
    cyblue> /usr/bin/ld: cannot find -lsocket
    cyblue> collect2: ld returned 1 exit status
    cyblue> make: *** [demo] error 1
    cyblue> ----------------------

    cyblue> what's wrong?

Perhaps you don't need to link with the socket library.  Try removing
"-lsocket" from your link line.  Same goes for any other libraries ld
complains about.

-- 
Skip Montanaro (skip at pobox.com)
(847)971-7098




More information about the Python-list mailing list