[SciPy-user] scipy.weave.inline and libs
Hoyt Koepke
hoytak at gmail.com
Tue Apr 22 15:33:41 EDT 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 at 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 at scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-user
>
--
+++++++++++++++++++++++++++++++++++
Hoyt Koepke
UBC Department of Computer Science
http://www.cs.ubc.ca/~hoytak/
hoytak at gmail.com
+++++++++++++++++++++++++++++++++++
More information about the SciPy-User
mailing list