> From: David Cournapeau <[email protected]>
> To: [email protected]
> Sent: Wednesday, September 30, 2009 4:29:02 AM
> Subject: Re: [Cython] Manual gcc compile, can't find libpython25.a (I think)
> 
> On Wed, Sep 30, 2009 at 11:38 AM, Stuart Axon <[email protected]> wrote:
> > Using the windows install and msys, I'm getting errors that look like
> >
> > This bit works fine
> > [C:\usr\shoebot\shoebot\core] set PINCLUDE=c:\usr\Python25\include\
> > [C:\usr\shoebot\shoebot\core] gcc -c -Ic:\usr\Python25\include\ 
> > cairo_canvas.c
> >
> >
> > I get errors here, how do I tell gcc that libpyt
> > [C:\usr\shoebot\shoebot\core]gcc -shared cairo_canvas.o 
> > -Lc:\usr\Python25\libs\libpython25.a -o cairo_canvas.dll
> > cairo_canvas.o:cairo_canvas.c:(.text+0x21): undefined reference to 
> > `_imp__PyObject_GetItem'
> > [....snipped]
> >
> 
> Your command line is wrong: the -L option tells the linker where to
> look for libraries. You should do something like:
> 
> gcc ... -LC:¥user¥Python25¥libs -lpython25 ...
> 
> cheers,
> 
> David
> _______________________________________________
> Cython-dev mailing list
> [email protected]
> http://codespeak.net/mailman/listinfo/cython-dev
> 
Cheers; I tried this:

[C:\usr\shoebot\shoebot\core] gcc -LC:\usr\Python25\libs -lpython25 -shared 
cairo_canvas.o -o cairo_canvas.dll
                                             
But still got the same errors
(Note: The current directory contains cairo_canvas.a  c:\usr\python\libs
 contains python25.lib and libpython25.a)


      
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to