public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: "eric lin" <ericlin@fsshl.zzn.com>
To: gcc-help@gcc.gnu.org
Subject: Re: boost library, hardtolink&compile, plz help
Date: Sun, 22 May 2011 18:42:00 -0000	[thread overview]
Message-ID: <FAE17C2C3B8777B4CA1639D83288BC7C@ericlin.fsshl.zzn.com> (raw)

dear Jeff or gnu g++ programers:
  I tried your suggestion(maybe I am not figure your words correctly, then why not
using command rather than English)
-------
eric@eric-laptop:~/cppcookbook$ g++ -I/home/eric/boost1/boost_1_46_1/ example12-1.cpp -Lboost_thread-mt
/tmp/cceCvYRC.o: In function `main':
example12-1.cpp:(.text+0x30): undefined reference to `boost::thread::join()'
example12-1.cpp:(.text+0x3c): undefined reference to `boost::thread::~thread()'
example12-1.cpp:(.text+0x5a): undefined reference to `boost::thread::~thread()'
/tmp/cceCvYRC.o: In function `boost::detail::thread_data_base::thread_data_base()':
example12-1.cpp:(.text._ZN5boost6detail16thread_data_baseC2Ev[boost::detail::thread_data_base::thread_data_base()]+0x1b): undefined reference to `vtable for boost::detail::thread_data_base'
/tmp/cceCvYRC.o: In function `boost::thread::yield()':
example12-1.cpp:(.text._ZN5boost6thread5yieldEv[boost::thread::yield()]+0x7): undefined reference to `boost::this_thread::yield()'
/tmp/cceCvYRC.o: In function `boost::thread::thread<MyThreadFunc>(MyThreadFunc, boost::disable_if<boost::is_convertible<MyThreadFunc&, boost::detail::thread_move_t<MyThreadFunc> >, boost::thread::dummy*>::type)':
example12-1.cpp:(.text._ZN5boost6threadC1I12MyThreadFuncEET_NS_10disable_ifINS_14is_convertibleIRS3_NS_6detail13thread_move_tIS3_EEEEPNS0_5dummyEE4typeE[boost::thread::thread<MyThreadFunc>(MyThreadFunc, boost::disable_if<boost::is_convertible<MyThreadFunc&, boost::detail::thread_move_t<MyThreadFunc> >, boost::thread::dummy*>::type)]+0x21): undefined reference to `boost::thread::start_thread()'
/tmp/cceCvYRC.o: In function `boost::detail::thread_data<MyThreadFunc>::~thread_data()':
example12-1.cpp:(.text._ZN5boost6detail11thread_dataI12MyThreadFuncED1Ev[boost::detail::thread_data<MyThreadFunc>::~thread_data()]+0x16): undefined reference to `boost::detail::thread_data_base::~thread_data_base()'
/tmp/cceCvYRC.o: In function `boost::detail::thread_data<MyThreadFunc>::~thread_data()':
example12-1.cpp:(.text._ZN5boost6detail11thread_dataI12MyThreadFuncED0Ev[boost::detail::thread_data<MyThreadFunc>::~thread_data()]+0x16): undefined reference to `boost::detail::thread_data_base::~thread_data_base()'
/tmp/cceCvYRC.o:(.rodata._ZTIN5boost6detail11thread_dataI12MyThreadFuncEE[typeinfo for boost::detail::thread_data<MyThreadFunc>]+0x8): undefined reference to `typeinfo for boost::detail::thread_data_base'
collect2: ld returned 1 exit status
eric@eric-laptop:~/cppcookbook$ 
------------------------------------
it is not work
so, plz help or any detailed suggestion/hint, thanks a lot in advance, Eric

             reply	other threads:[~2011-05-22 12:14 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-22 18:42 eric lin [this message]
2011-05-22 18:49 ` Jonathan Wakely
  -- strict thread matches above, loose matches on Subject: below --
2011-05-24 14:19 eric lin
2011-05-24 14:23 ` Jeffrey Walton
2011-05-23 13:01 eric lin
2011-05-23 13:10 ` Jeffrey Walton
2011-05-23  4:14 eric lin
2011-05-23  6:10 ` Jonathan Wakely
2011-05-21 19:16 eric lin
2011-05-22  0:54 ` Ian Lance Taylor
2011-05-22  8:15   ` Miles Bader
2011-05-21  9:10 eric lin
2011-05-21  9:30 ` Marc Glisse

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=FAE17C2C3B8777B4CA1639D83288BC7C@ericlin.fsshl.zzn.com \
    --to=ericlin@fsshl.zzn.com \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).