"warning: this is the location of the previous definition" what it means?

1,813 views
Skip to first unread message

Riasat Abir

unread,
Mar 18, 2011, 4:32:36 AM3/18/11
to andro...@googlegroups.com
Hi all,

I have compiled a pal library which uses boost.
I've compiled boostthread successfully with ndk.

But while compiling PAL I get this warning (in the title). The bold line says the shared library is built isn't it? but i don't get the libpal.so file as the compilation says: 

G:/afe/jni/PAL/Sources/../../boost/boost/config/posix_features.hpp:46:1: warning: "BOOST_HAS_PTHREADS" redefined
<command-line>: warning: this is the location of the previous definition
SharedLibrary  : libpal.so
G:/afe/obj/local/armeabi/objs/pal/PALcritsec.o: In function `boost::detail::thread::lock_ops<boost::recursive_mutex>::unlock(boost::recursive_mutex&, boost::recursive_mutex::cv_state&)':
G:/afe/jni/PAL/Sources/../../boost/boost/thread/detail/lock.hpp:58: undefined reference to `boost::recursive_mutex::do_unlock(boost::recursive_mutex::cv_state&)'

make: *** [/cygdrive/g/afe/obj/local/armeabi/libpal.so] Error 1

compilation log attached.

Regards,
Riasat
PAL error.txt

Igor R

unread,
Mar 18, 2011, 4:52:54 AM3/18/11
to andro...@googlegroups.com

The problem is that the linker doesn't find Boost.Thread static library.
Ensure that it exists on the path where it should be.

alan

unread,
Mar 18, 2011, 5:39:57 AM3/18/11
to andro...@googlegroups.com
have you specified boost thread in LOCAL_STATIC_LIBRARIES or LOCAL_LDLIBS?

alan

unread,
Mar 18, 2011, 5:40:37 AM3/18/11
to andro...@googlegroups.com
have you specified boost thread in LOCAL_STATIC_LIBRARIES or LOCAL_LDLIBS? the bold line states what the build is about to do.

Riasat Abir

unread,
Mar 18, 2011, 6:14:43 AM3/18/11
to andro...@googlegroups.com
yah it worked now after putting boostthread as local shared library :)

On Fri, Mar 18, 2011 at 3:40 PM, alan <al...@birtles.org.uk> wrote:
have you specified boost thread in LOCAL_STATIC_LIBRARIES or LOCAL_LDLIBS? the bold line states what the build is about to do.

--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.



--

HimHim

Reply all
Reply to author
Forward
0 new messages