public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: boost library, hardtolink&compile, plz help
@ 2011-05-24 14:19 eric lin
  2011-05-24 14:23 ` Jeffrey Walton
  0 siblings, 1 reply; 12+ messages in thread
From: eric lin @ 2011-05-24 14:19 UTC (permalink / raw)
  To: gcc-help

Dear Jeffrey (and/or gnu/g++ programers):
  I follow your hint
--------------------
root@eric-laptop:/# ldconfig -p | grep -i boost
root@eric-laptop:/# 

----------
so it looks my thread lib is not available for the runtime linker
although your first commnad do issue a.out without compile/link error
however, when I run ./a.out
---------
eric@eric-laptop:~/cppcookbook$  ./a.out
./a.out: error while loading shared libraries: libboost_thread.so.1.46.1: cannot open shared object file: No such file or directory
--
that looks not what the book author suppose it be.
(so I emailed first author of that book, D. Ryan Stephens, he is not yet reply me)
looking to see better way to make it work right, and thanks a lot in advance, Eric

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: boost library, hardtolink&compile, plz help
  2011-05-24 14:19 boost library, hardtolink&compile, plz help eric lin
@ 2011-05-24 14:23 ` Jeffrey Walton
  0 siblings, 0 replies; 12+ messages in thread
From: Jeffrey Walton @ 2011-05-24 14:23 UTC (permalink / raw)
  To: eric lin; +Cc: gcc-help

On Mon, May 23, 2011 at 11:44 AM, eric lin <ericlin@fsshl.zzn.com> wrote:
> Dear Jeffrey (and/or gnu/g++ programers):
>  I follow your hint
> --------------------
> root@eric-laptop:/# ldconfig -p | grep -i boost
> root@eric-laptop:/#
>
> ----------
> so it looks my thread lib is not available for the runtime linker
> although your first commnad do issue a.out without compile/link error
> however, when I run ./a.out
> ---------
> eric@eric-laptop:~/cppcookbook$  ./a.out
> ./a.out: error while loading shared libraries: libboost_thread.so.1.46.1: cannot open shared object file: No such file or directory
> --
http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: boost library, hardtolink&compile, plz help
  2011-05-23 13:01 eric lin
@ 2011-05-23 13:10 ` Jeffrey Walton
  0 siblings, 0 replies; 12+ messages in thread
From: Jeffrey Walton @ 2011-05-23 13:10 UTC (permalink / raw)
  To: eric lin; +Cc: gcc-help

On Sun, May 22, 2011 at 10:06 PM, eric lin <ericlin@fsshl.zzn.com> wrote:
> Dear Jonathan and/or g++ with boost programer/users:
>
>  I tried apt-get install libboost-dev
> on my ubuntu linux system
> but when I tried to compile/link
> -----------
> eric@eric-laptop:~/cppcookbook$ g++ example12-1.cpp
> /tmp/cchm8bWZ.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/cchm8bWZ.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/cchm8bWZ.o: In function `boost::thread::yield()':
> example12-1.cpp:(.text._ZN5boost6thread5yieldEv[boost::thread::yield()]+0x7): undefined reference to `boost::this_thread::yield()'
> /tmp/cchm8bWZ.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/cchm8bWZ.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/cchm8bWZ.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/cchm8bWZ.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$
> ---------------------------------
> actually I also tried to install that boost lib follow its install instuction
> , after that(maybe not fully success, I am not sure)
> I found there is
> libboost_thread.so
> --------
> root@eric-laptop:/home/eric/boost1/boost_1_46_1# ls -l -a /usr/local/lib/libboost_thread.so
> lrwxrwxrwx 1 root root 25 2011-05-22 18:38 /usr/local/lib/libboost_thread.so -> libboost_thread.so.1.46.1
> root@eric-laptop:/home/eric/boost1/boost_1_46_1# ls -l -a /usr/local/lib/libboost_thread.so.1.46.1
> -rwxr-xr-x 1 root root 123301 2011-05-22 18:38 /usr/local/lib/libboost_thread.so.1.46.1
>
> --------------
>
> hope these help any advencer to debug to make it success to compile/link
> thanks a lot in advance, Eric
>

> I found there is
> libboost_thread.so
g++ example12-1.cpp -lboost_thread

It it does not link, issue the following to see if the library is
available to the runtime linker
    ldconfig -p | grep -i boost

Jeff

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: boost library, hardtolink&compile, plz help
@ 2011-05-23 13:01 eric lin
  2011-05-23 13:10 ` Jeffrey Walton
  0 siblings, 1 reply; 12+ messages in thread
From: eric lin @ 2011-05-23 13:01 UTC (permalink / raw)
  To: gcc-help

Dear Jonathan and/or g++ with boost programer/users:

  I tried apt-get install libboost-dev
on my ubuntu linux system
but when I tried to compile/link
-----------
eric@eric-laptop:~/cppcookbook$ g++ example12-1.cpp
/tmp/cchm8bWZ.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/cchm8bWZ.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/cchm8bWZ.o: In function `boost::thread::yield()':
example12-1.cpp:(.text._ZN5boost6thread5yieldEv[boost::thread::yield()]+0x7): undefined reference to `boost::this_thread::yield()'
/tmp/cchm8bWZ.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/cchm8bWZ.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/cchm8bWZ.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/cchm8bWZ.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$ 
---------------------------------
actually I also tried to install that boost lib follow its install instuction
, after that(maybe not fully success, I am not sure)
I found there is
libboost_thread.so
--------
root@eric-laptop:/home/eric/boost1/boost_1_46_1# ls -l -a /usr/local/lib/libboost_thread.so
lrwxrwxrwx 1 root root 25 2011-05-22 18:38 /usr/local/lib/libboost_thread.so -> libboost_thread.so.1.46.1
root@eric-laptop:/home/eric/boost1/boost_1_46_1# ls -l -a /usr/local/lib/libboost_thread.so.1.46.1
-rwxr-xr-x 1 root root 123301 2011-05-22 18:38 /usr/local/lib/libboost_thread.so.1.46.1

--------------

hope these help any advencer to debug to make it success to compile/link
thanks a lot in advance, Eric

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: boost library, hardtolink&compile, plz help
  2011-05-23  4:14 eric lin
@ 2011-05-23  6:10 ` Jonathan Wakely
  0 siblings, 0 replies; 12+ messages in thread
From: Jonathan Wakely @ 2011-05-23  6:10 UTC (permalink / raw)
  To: eric lin; +Cc: gcc-help

On 22 May 2011 19:42, eric lin wrote:
> Dear Jonathan or any g++ programers:
>  after reading your email hint, I goto my download and extracted directory
> /boost1_46_1/  directory
> and then run
> ./bootstrap.sh
>
> I don't know whether that is what you mean about ((install boost library) and (if it is where is boost library go))

This isn't the right place to find out how to install boost - read the
boost website.  Or if you're using GNU/Linux you can probably install
it from your distro's package manager, that would be easiest.

> then after that I run your suggest command in my cppcookbook/ directory which contain my example program about using boost lib's thread
>
> this is what I do and get
> ------------------------
> eric@eric-laptop:~/cppcookbook$ g++ -I/home/eric/boost1/boost_1_46_1/ example12-1.cpp  -L/home/eric/boost1/boost_1_46_1/boost/   -lboost_thread-mt
> /usr/bin/ld: cannot find -lboost_thread-mt
> collect2: ld returned 1 exit status
> eric@eric-laptop:~/cppcookbook$
>
> -----------------------------------
> would you please tell me what is
>
> boost_thread-mt
>
> mean?

It's the name of a library, -lboost_thread-mt tells the linker to link
to libboost_thread-mt.so

> if that is a file, I indeed hard to find it in my /boost_1_46_1/  directory

The file will be called libboost_thread-mt.so

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: boost library, hardtolink&compile, plz help
@ 2011-05-23  4:14 eric lin
  2011-05-23  6:10 ` Jonathan Wakely
  0 siblings, 1 reply; 12+ messages in thread
From: eric lin @ 2011-05-23  4:14 UTC (permalink / raw)
  To: gcc-help

Dear Jonathan or any g++ programers:
  after reading your email hint, I goto my download and extracted directory
/boost1_46_1/  directory
and then run
./bootstrap.sh

I don't know whether that is what you mean about ((install boost library) and (if it is where is boost library go))

then after that I run your suggest command in my cppcookbook/ directory which contain my example program about using boost lib's thread

this is what I do and get
------------------------
eric@eric-laptop:~/cppcookbook$ g++ -I/home/eric/boost1/boost_1_46_1/ example12-1.cpp  -L/home/eric/boost1/boost_1_46_1/boost/   -lboost_thread-mt
/usr/bin/ld: cannot find -lboost_thread-mt
collect2: ld returned 1 exit status
eric@eric-laptop:~/cppcookbook$ 

-----------------------------------
would you please tell me what is

boost_thread-mt

mean?

if that is a file, I indeed hard to find it in my /boost_1_46_1/  directory

thanks your help a lot, but still not solve
Eric




^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: boost library, hardtolink&compile, plz help
  2011-05-22 18:42 eric lin
@ 2011-05-22 18:49 ` Jonathan Wakely
  0 siblings, 0 replies; 12+ messages in thread
From: Jonathan Wakely @ 2011-05-22 18:49 UTC (permalink / raw)
  To: eric lin; +Cc: gcc-help

On 22 May 2011 13:14, eric lin <ericlin@fsshl.zzn.com> wrote:
> 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

No, you didn't understand.  -L is used to name a directory where
libraries live, like -I is used to name a directory where headers
live.

Have you build the boost libraries yet?
If you haven't then you need to do that first.

Then do

g++ -I/home/eric/boost1/boost_1_46_1/ example12-1.cpp
-L/path/to/boost/libraries -lboost_thread-mt

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: boost library, hardtolink&compile, plz help
@ 2011-05-22 18:42 eric lin
  2011-05-22 18:49 ` Jonathan Wakely
  0 siblings, 1 reply; 12+ messages in thread
From: eric lin @ 2011-05-22 18:42 UTC (permalink / raw)
  To: gcc-help

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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: boost library, hardtolink&compile, plz help
  2011-05-22  0:54 ` Ian Lance Taylor
@ 2011-05-22  8:15   ` Miles Bader
  0 siblings, 0 replies; 12+ messages in thread
From: Miles Bader @ 2011-05-22  8:15 UTC (permalink / raw)
  To: Ian Lance Taylor; +Cc: eric lin, gcc-help

Ian Lance Taylor <iant@google.com> writes:
> "eric lin" <ericlin@fsshl.zzn.com> writes:
>> eric@eric-laptop:~/cppcookbook$ g++
>> -I/home/eric/boost1/boost_1_46_1/ example12-1.cpp
>> /tmp/ccd4Cx51.o: In function `main':
>> example12-1.cpp:(.text+0x30): undefined reference to `boost::thread::join()'
>
> These errors, from the linker, mean that you are not linking against the
> Boost library.  You need to add something like -lboost with some -L
> option which points to the directory where libboost.so or libboost.a can
> be found.

I think typically boost "packages" that have a run-time component (many
don't) each has its own library.

For instance, on this system, the boost thread package needs to be
linked against like "-lboost_thread-mt".

-Miles

-- 
It wasn't the Exxon Valdez captain's driving that caused the Alaskan oil spill.
It was yours.  [Greenpeace advertisement, New York Times, 25 February 1990]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: boost library, hardtolink&compile, plz help
  2011-05-21 19:16 eric lin
@ 2011-05-22  0:54 ` Ian Lance Taylor
  2011-05-22  8:15   ` Miles Bader
  0 siblings, 1 reply; 12+ messages in thread
From: Ian Lance Taylor @ 2011-05-22  0:54 UTC (permalink / raw)
  To: eric lin; +Cc: gcc-help

"eric lin" <ericlin@fsshl.zzn.com> writes:

> I follow your hint, but after that I still get a lot compile error
> ----------
> eric@eric-laptop:~/cppcookbook$ g++ -I/home/eric/boost1/boost_1_46_1/ example12-1.cpp 
> /tmp/ccd4Cx51.o: In function `main':
> example12-1.cpp:(.text+0x30): undefined reference to `boost::thread::join()'

These errors, from the linker, mean that you are not linking against the
Boost library.  You need to add something like -lboost with some -L
option which points to the directory where libboost.so or libboost.a can
be found.

Ian

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: boost library, hardtolink&compile, plz help
  2011-05-21  9:10 eric lin
@ 2011-05-21  9:30 ` Marc Glisse
  0 siblings, 0 replies; 12+ messages in thread
From: Marc Glisse @ 2011-05-21  9:30 UTC (permalink / raw)
  To: eric lin; +Cc: gcc-help

On Sat, 21 May 2011, eric lin wrote:

> dear g++ programers:
>
>  I download boost's 1_46_1, then try to compile a simple program copied from book(C++ Cookbook) page447, 12.1 Creating a Thread
> --------------
> // example 12-1. Creating a thread
> #include <iostream>
> #include </home/eric/boost1/boost_1_46_1/boost/thread/thread.hpp>
> #include </home/eric/boost1/boost_1_46_1/boost/thread/xtime.hpp>

I strongly doubt you copied that from a book. You should have:
#include <boost/thread/thread.hpp>

and compile with g++ -I/home/eric/boost1/boost_1_46_1 ...

-- 
Marc Glisse

^ permalink raw reply	[flat|nested] 12+ messages in thread

* boost library, hardtolink&compile, plz help
@ 2011-05-21  9:10 eric lin
  2011-05-21  9:30 ` Marc Glisse
  0 siblings, 1 reply; 12+ messages in thread
From: eric lin @ 2011-05-21  9:10 UTC (permalink / raw)
  To: gcc-help

dear g++ programers:

  I download boost's 1_46_1, then try to compile a simple program copied from book(C++ Cookbook) page447, 12.1 Creating a Thread
--------------
// example 12-1. Creating a thread
#include <iostream>
#include </home/eric/boost1/boost_1_46_1/boost/thread/thread.hpp>
#include </home/eric/boost1/boost_1_46_1/boost/thread/xtime.hpp>

struct MyThreadFunc {
  void operator()() {
    // Do something long-running...
  }
} threadFun;

int main() {
  boost::thread myThread(threadFun);  // Create a thread that starts
                                      // running threadFun
  boost::thread::yield();             // give up the main thread's timeslice
                                      // so the child thread can get some work
                                      // done.

  // Go do some other work...

  myThread.join();            // The current (i.e., main) thread will wait
                              // for myThread to finish before it returns
}
---------------------------------------------------------------------
my g++ 4.4.3 's compile result is
---------------------
eric@eric-laptop:~/cppcookbook$ g++ example12-1.cpp
In file included from example12-1.cpp:3:
/home/eric/boost1/boost_1_46_1/boost/thread/thread.hpp:12:44: error: boost/thread/detail/platform.hpp: No such file or directory
/home/eric/boost1/boost_1_46_1/boost/thread/thread.hpp:19:2: error: #error "Boost threads unavailable on this platform"
/home/eric/boost1/boost_1_46_1/boost/thread/thread.hpp:22:42: error: boost/thread/detail/thread.hpp: No such file or directory
/home/eric/boost1/boost_1_46_1/boost/thread/thread.hpp:23:55: error: boost/thread/detail/thread_interruption.hpp: No such file or directory
/home/eric/boost1/boost_1_46_1/boost/thread/thread.hpp:24:48: error: boost/thread/detail/thread_group.hpp: No such file or directory
In file included from example12-1.cpp:4:
/home/eric/boost1/boost_1_46_1/boost/thread/xtime.hpp:11:42: error: boost/thread/detail/config.hpp: No such file or directory
/home/eric/boost1/boost_1_46_1/boost/thread/xtime.hpp:13:29: error: boost/cstdint.hpp: No such file or directory
/home/eric/boost1/boost_1_46_1/boost/thread/xtime.hpp:14:40: error: boost/thread/thread_time.hpp: No such file or directory
/home/eric/boost1/boost_1_46_1/boost/thread/xtime.hpp:15:53: error: boost/date_time/posix_time/conversion.hpp: No such file or directory
/home/eric/boost1/boost_1_46_1/boost/thread/xtime.hpp:17:39: error: boost/config/abi_prefix.hpp: No such file or directory
/home/eric/boost1/boost_1_46_1/boost/thread/xtime.hpp:90:39: error: boost/config/abi_suffix.hpp: No such file or directory
In file included from example12-1.cpp:4:
/home/eric/boost1/boost_1_46_1/boost/thread/xtime.hpp:38: error: ‘int_fast64_t’ does not name a type
/home/eric/boost1/boost_1_46_1/boost/thread/xtime.hpp:41: error: ‘int_fast32_t’ does not name a type
/home/eric/boost1/boost_1_46_1/boost/thread/xtime.hpp:43: error: ‘xtime_sec_t’ does not name a type
/home/eric/boost1/boost_1_46_1/boost/thread/xtime.hpp:44: error: ‘xtime_nsec_t’ does not name a type
/home/eric/boost1/boost_1_46_1/boost/thread/xtime.hpp:46: error: expected type-specifier before ‘system_time’
/home/eric/boost1/boost_1_46_1/boost/thread/xtime.hpp:59: error: ‘boost::get_xtime’ declared as an ‘inline’ variable
/home/eric/boost1/boost_1_46_1/boost/thread/xtime.hpp:59: error: ‘system_time’ is not a member of ‘boost’
/home/eric/boost1/boost_1_46_1/boost/thread/xtime.hpp:60: error: expected ‘,’ or ‘;’ before ‘{’ token
In file included from example12-1.cpp:4:
/home/eric/boost1/boost_1_46_1/boost/thread/xtime.hpp: In function ‘int boost::xtime_get(boost::xtime*, int)’:
/home/eric/boost1/boost_1_46_1/boost/thread/xtime.hpp:73: error: ‘get_system_time’ was not declared in this scope
/home/eric/boost1/boost_1_46_1/boost/thread/xtime.hpp: In function ‘int boost::xtime_cmp(const boost::xtime&, const boost::xtime&)’:
/home/eric/boost1/boost_1_46_1/boost/thread/xtime.hpp:82: error: ‘const struct boost::xtime’ has no member named ‘sec’
/home/eric/boost1/boost_1_46_1/boost/thread/xtime.hpp:82: error: ‘const struct boost::xtime’ has no member named ‘sec’
/home/eric/boost1/boost_1_46_1/boost/thread/xtime.hpp:83: error: ‘const struct boost::xtime’ has no member named ‘nsec’
/home/eric/boost1/boost_1_46_1/boost/thread/xtime.hpp:83: error: ‘const struct boost::xtime’ has no member named ‘nsec’
/home/eric/boost1/boost_1_46_1/boost/thread/xtime.hpp:85: error: ‘const struct boost::xtime’ has no member named ‘sec’
/home/eric/boost1/boost_1_46_1/boost/thread/xtime.hpp:85: error: ‘const struct boost::xtime’ has no member named ‘sec’
example12-1.cpp: In function ‘int main()’:
example12-1.cpp:13: error: ‘thread’ is not a member of ‘boost’
example12-1.cpp:13: error: expected ‘;’ before ‘myThread’
example12-1.cpp:15: error: ‘boost::thread’ has not been declared
example12-1.cpp:21: error: ‘myThread’ was not declared in this scope
eric@eric-laptop:~/cppcookbook$
--------------------------------
so, plz help
is that boost.org's problem?
thx a lot in advance, Eric

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2011-05-23 16:16 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-24 14:19 boost library, hardtolink&compile, plz help eric lin
2011-05-24 14:23 ` Jeffrey Walton
  -- strict thread matches above, loose matches on Subject: below --
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-22 18:42 eric lin
2011-05-22 18:49 ` 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

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).