Boost logo

Boost :

From: Janusz Piwowarski (jpiw_at_[hidden])
Date: 2004-06-18 05:21:12


Vladimir Prus wrote:
> Janusz Piwowarski wrote:
> > Janusz Piwowarski wrote:
> > > BTW, i successfully compile program_options library and examples with
> > > stlport 4.6.2; but my program, where i use boost::thread, don't want
to
> > > link.
> >
> > Sorry, i check it now - examples also don't link.
>
> Do you mean they don't link with stlport or without. In either case, could
you
> send me the error messages? Maybe it's something that's easy to fix.
>

I mean with stlport.

There's example output:

gcc-Link-action
..\..\..\bin\boost\libs\program_options\example\custom_syntax.ex
e\mingw-stlport\debug\custom_syntax.exe
Info: resolving __ZTVN4_STL7codecvtIwciEE by linking to
__imp___ZTVN4_STL7codecv
tIwciEE (auto-import)
..\..\..\bin\boost\libs\program_options\build\libboost_program_options.lib\m
ingw
-stlport\debug\libboost_program_options-mgw-gdp-1_31.lib(convert.obj)(.text$
_ZN4
_STL7codecvtIwciEC2Ej+0x28): In function
`ZN4_STL12__owned_link11_InvalidateEv':

c:/cpp/STLport-4.6.2/stlport/stl/_threads.h: variable 'vtable for
_STL::codecvt<
wchar_t, char, int>' can't be auto-imported. Please read the documentation
for l
d's --enable-auto-import for details.

    "g++" "-Wl,--enable-auto-image-base" -g -mno-cygwin -o
"..\..\..\bin\bo
ost\libs\program_options\example\custom_syntax.exe\mingw-stlport\debug\custo
m_sy
ntax.exe" -L"../../../bin/boost/libs/program_options/build/libboost_program
_opt
ions.lib/mingw-stlport/debug" -L"c:/cpp/STLport-4.6.2/lib"
"..\..\..\bin\boost
\libs\program_options\example\custom_syntax.exe\mingw-stlport\debug\custom_s
ynta
x.obj"
"..\..\..\bin\boost\libs\program_options\build\libboost_program_options.
lib\mingw-stlport\debug\libboost_program_options-mgw-gdp-1_31.lib"
"..\..\..\bi
n\boost\libs\program_options\build\libboost_program_options.lib\mingw-stlpor
t\de
bug\libboost_program_options-mgw-gdp-1_31.lib" -lstlport_mingw32_stldebug

...failed gcc-Link-action
..\..\..\bin\boost\libs\program_options\example\custom
_syntax.exe\mingw-stlport\debug\custom_syntax.exe...

I've read ld's documentation but invent nothing. Because when linking
with static library there is a lots of undefined references - i think it's
need workaround in stlport code.

Regards,
Janusz


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk