Re: pkg-config of python3

2020-04-24 Thread Simon McVittie
On Fri, 24 Apr 2020 at 18:32:06 +, PICCA Frederic-Emmanuel wrote: > > If you want to embed python in an application, you need to use > > python3-embed.pc > > Or python3-config --embed > > then it links the program with -lpython3.8 > > so what is the purpose of python3.pc ? You use python3.p

RE:pkg-config of python3

2020-04-24 Thread PICCA Frederic-Emmanuel
> If you want to embed python in an application, you need to use > python3-embed.pc > Or python3-config --embed then it links the program with -lpython3.8 so what is the purpose of python3.pc ? thanks Fred

Re: pkg-config of python3

2020-04-24 Thread Stefano Rivera
Hi PICCA (2020.04.24_07:33:48_+) > so it seems that the program is not linked with the Python3 library > > I use pkg-config to obtain the library > > picca@2a02-8420-6c55-6500-d012-4688-0bee-a0c6:~/hkl/contrib/haskell$ > pkg-config --libs python3 > > picca@2a02-8420-6c55-6500-d012-4688-0bee

pkg-config of python3

2020-04-24 Thread PICCA Frederic-Emmanuel
Hello , I am writing a program in haskell which use Python3 It failes with Linking dist/build/binoculars/binoculars ... src/Hkl/Python/Pyfi.hs:124 : erreur : référence à « Py_BuildValue » non définie src/Hkl/Python/Pyfi.hs:199 : erreur : référence à « PyUnicode_AsUTF8 » non définie src/Hkl/Pytho