Embedding Python

Diez B. Roggisch deetsNOSPAM at web.de
Sat Mar 26 13:47:35 EST 2005


> This works for me on Redhat 9:
> 
> g++ x.cpp -o x -I/usr/include/python2.2 -pthread -lm
>   -ldl -lutil /usr/lib/python2.2/config/libpython2.2.a
> 

Why did you chose the static variant? This should be equivalent:

g++ x.cpp -o x -I/usr/include/python2.2 -pthread -lm
  -ldl -lutil -lpython2.2

-- 
Regards,

Diez B. Roggisch



More information about the Python-list mailing list