|
Boost : |
From: vicente.botet (vicente.botet_at_[hidden])
Date: 2008-05-31 13:17:10
Hello,
I have a warning when linking with the thread library.
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld:
warning: auto-importing has been activated without --enable-auto-import
specified on the command line.
When I set
<library>/boost/thread//boost_thread/<link>static;
instead of
<library>/boost/thread//boost_thread;
this works without warnings.
What I need to do to link dynamically without warnings?
Best regards
Vicente
==================
Command
$ bjam
The jamfile contains
using testing ;
if ! $(BOOST_ROOT)
{
BOOST_ROOT = [ modules.peek : BOOST_ROOT ] ;
}
project :
: requirements
<include>$(BOOST_ROOT)
<include>../../..
<threading>multi
<target-os>cygwin
<threadapi>pthread
<variant>debug
<library>/boost/test//boost_unit_test_framework/<link>static
<threading>multi
<library>/boost/thread//boost_thread;
Link warning:
gcc.compile.c++
..\..\..\bin.v2\libs\sync\test\include_concurrent_component.test\gcc-3.4.4\debug\target-os-cygwin\threadapi-pthread\threading-multi\include_concurrent_component.o
**passed**
..\..\..\bin.v2\libs\sync\test\include_concurrent_component.test\gcc-3.4.4\debug\target-os-cygwin\threadapi-pthread\threading-multi\include_concurrent_component.test
gcc.compile.c++
..\..\..\bin.v2\libs\sync\test\static_thread_group_test.test\gcc-3.4.4\debug\target-os-cygwin\threadapi-pthread\threading-multi\static_thread_group_test.o
gcc.link
..\..\..\bin.v2\libs\sync\test\static_thread_group_test.test\gcc-3.4.4\debug\target-os-cygwin\threadapi-pthread\threading-multi\static_thread_group_test.exe
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld:
warning: auto-importing has been activated without --enable-auto-import
specified on the command line.
This should work unless it involves constant data structures referencing
symbols from auto-imported DLLs.Info: resolving vtable for
boost::detail::thread_data_baseby linking to
__imp___ZTVN5boost6detail16thread_data_baseE (auto-import)
testing.capture-output
..\..\..\bin.v2\libs\sync\test\static_thread_group_test.test\gcc-3.4.4\debug\target-os-cygwin\threadapi-pthread\threading-multi\static_thread_group_test.run
1 fichier(s) copi?(s).
**passed**
..\..\..\bin.v2\libs\sync\test\static_thread_group_test.test\gcc-3.4.4\debug\target-os-cygwin\threadapi-pthread\threading-multi\static_thread_group_test.test
...updated 6 targets...
---------------------------
Vicente Juan Botet Escriba
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk