Hi PICCA (2020.04.24_07:33:48_+0000) > 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-a0c6:~/hkl/contrib/haskell$ > pkg-config --libs python2 > -lpython2.7
If you want to embed python in an application, you need to use python3-embed.pc Or python3-config --embed See: https://docs.python.org/3/whatsnew/3.8.html#debug-build-uses-the-same-abi-as-release-build Python libraries should not be linked to libpython, as that's present when they're loaded into the interpreter. SR -- Stefano Rivera http://tumbleweed.org.za/ +1 415 683 3272