Re: source compilation error: undefined references
On Wednesday, June 12, 2013 2:52:10 PM UTC+2, Stefan van der Walt wrote:
Hi Evan
On the command line, I seem to avoid the errors by adding the math
On Wed, Jun 12, 2013 at 2:33 PM, Evan
javascript:> wrote: library, -lm, at the end:
If you modify the setup file as shown here:
http://docs.cython.org/src/tutorial/external.html#dynamic-linking
Does that help? If so, a pull request would be welcome. I'm not sure why the error occurs: I don't see the same problem on my Ubuntu machine.
Stéfan
Thanks for your reply. Can you coach me a little on the modification I need to make. I assume the file to edit is: ... /scikit-image-0.8.2/skimage/_shared/setup.py But so far I don't see how to resolve what's needed from http://docs.cython.org/src/tutorial/external.html#dynamic-linking into the setup file. Thanks, Evan
On Thu, Jun 13, 2013 at 11:43 AM, Evan
Thanks for your reply. Can you coach me a little on the modification I need to make. I assume the file to edit is: ... /scikit-image-0.8.2/skimage/_shared/setup.py But so far I don't see how to resolve what's needed from http://docs.cython.org/src/tutorial/external.html#dynamic-linking into the setup file.
Yes, you need to add the 'libraries=["m"]' part. Stéfan
participants (2)
-
Evan
-
Stéfan van der Walt