|
From: David A. <dav...@rc...> - 2002-10-04 16:51:15
|
...and a final (?) piece of data:
The imports that can't be found all appear to be data, and none of them show
up in the results of 'nm Python22.lib'.
Any help appreciated,
Dave
--
-----------------------------------------------------------
David Abrahams * Boost Consulting
da...@bo... * http://www.boost-consulting.com
"David Abrahams" <dav...@rc...> wrote in message
news:ankg4q$vvs$1...@ma......
> A little more on this problem:
>
> As you can see from the report below, the undefined reference is to
symbols
> of the form:
>
> `_imp__XXXXX'
>
> If I do nm python22.lib, I see lots of symbols of the form:
>
> `__imp__XXXXX'
>
> Note the extra underscore. Has anyone successfully linked to ordinary
> windows DLLs with MinGW 2.0? It's hard to believe I'm the only one having
> this problem.
>
> --
> -----------------------------------------------------------
> David Abrahams * Boost Consulting
> da...@bo... * http://www.boost-consulting.com
>
>
> "David Abrahams" <dav...@rc...> wrote in message
> news:ankeml$n7i$1...@ma......
> > Has anyone had success building a Python extension with MinGW 2.0? it
> seems
> > to be having problems finding the symbols from Python22.li, despite the
> fact
> > that it's in the link line and that earlier MinGWs worked just fine with
> the
> > same build:
> >
> >
> >
> >
>
/tools/MinGW-2.0\bin\g++ -Wl,--exclude-symbols,_bss_end__:_bss_start__:_d
> >
>
ata_end__:_data_start__ -Wl,--out-implib,c:\build\libs\python\bin\bpl.dll\mi
> > ngw-2.0\debug\runtime-link-dynamic\bpl.lib -g -shared -o
> >
>
"c:\build\libs\python\bin\bpl.dll\mingw-2.0\debug\runtime-link-dynamic\bpl.d
> > ll" ... "c:/tools/python-2.2.1\PCbuild\python22.lib"
> > "c:/tools/python-2.2.1\PCbuild\python22.lib" -Wl,-rpath-link,.
> >
> > c:/boost/libs/python/test/../../../libs/python/src/numeric.cpp:29:
> undefined
> > reference to `_imp__PyExc_ImportError'
> >
>
c:\build\libs\python\bin\bpl.dll\mingw-2.0\debug\runtime-link-dynamic\numeri
> > c.obj: In function
> >
>
`ZN5boost6python7numeric53_GLOBAL__N_.._.._.._libs_python_src_numeric.cppQFr
> > 5hb4loadEb':
> > c:/boost/libs/python/test/../../../libs/python/src/numeric.cpp:57:
> undefined
> > reference to `_imp__PyType_Type'
> > ...
> > <snip>
> >
> >
> > --
> > -----------------------------------------------------------
> > David Abrahams * Boost Consulting
> > da...@bo... * http://www.boost-consulting.com
> >
> >
> >
> >
> >
> >
> >
> >
> > -------------------------------------------------------
> > This sf.net email is sponsored by:ThinkGeek
> > Welcome to geek heaven.
> > http://thinkgeek.com/sf
> > _______________________________________________
> > MinGW-users mailing list
> > Min...@li...
> >
> > You may change your MinGW Account Options or unsubscribe at:
> > https://lists.sourceforge.net/lists/listinfo/mingw-users
> >
>
>
>
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> MinGW-users mailing list
> Min...@li...
>
> You may change your MinGW Account Options or unsubscribe at:
> https://lists.sourceforge.net/lists/listinfo/mingw-users
>
|