Embedding problem, undefined symbols

Skip Montanaro skip at pobox.com
Wed Aug 1 15:02:53 EDT 2001


    Rick>   File "<string>", line 1, in ?
    Rick> ImportError: /usr/lib/python1.5/lib-dynload/mathmodule.so: undefined
    Rick> symbol: fabs

Rick,

Looks like mathmodule.so was not linked with -lm.  Your Modules/Setup file
probably has a line like

    math mathmodule.c # -lm # math library functions, e.g. sin()

You probably need to change it to

    math mathmodule.c -lm # math library functions, e.g. sin()

-- 
Skip Montanaro (skip at pobox.com)
http://www.mojam.com/
http://www.musi-cal.com/




More information about the Python-list mailing list