[SciPy-user] scipy.weave.inline and libs

Hoyt Koepke hoytak@gmail....
Tue Apr 22 14:33:41 CDT 2008


If you look at the doc string for the inline function, it lists all
the possible keyword options.  One of them is libraries, if I recall
right.

--Hoyt

On Tue, Apr 22, 2008 at 12:18 PM, Gnata Xavier <xavier.gnata@gmail.com> wrote:
> Hi,
>
>  I'm trying to figure out how scipy.weave.inline works.
>  It is pretty easy (even if the doc is missing) but I still have on pb :
>  I would like to be able to link a lib to my C code.
>  How should I add -lm or -lgsl -lgslcblas -lm or -lwhatever ?
>
>  val = scipy.weave.inline(code,
>              ['pri', 'max'],
>              type_converters=converters.blitz,
>              compiler = 'gcc',extra_compile_args =
>                          ['-O3','-fopenmp','-lm'])
>  "g++: -lm: linker input file unused because linking not done"
>
>  Yep it is true...so is it even possible?
>
>  Xavier
>  _______________________________________________
>  SciPy-user mailing list
>  SciPy-user@scipy.org
>  http://projects.scipy.org/mailman/listinfo/scipy-user
>



-- 
+++++++++++++++++++++++++++++++++++
Hoyt Koepke
UBC Department of Computer Science
http://www.cs.ubc.ca/~hoytak/
hoytak@gmail.com
+++++++++++++++++++++++++++++++++++


More information about the SciPy-user mailing list