On Thu, Jul 15, 2010 at 7:52 AM, Takuya ASADA <[email protected]> wrote:
>
> Hi,
>
> I'm writing sample code of RADOS client to learn RADOS API, and I'm
> stacking on librados::Rados::read().
> It could compile, but cannot link due to this error:
> get_obj.cc:(.text+0x315): undefined reference to
> `librados::Rados::read(void*, std::basic_string<char,
> std::char_traits<char>, std::allocator<char> > const&, long,
> ceph::buffer::list&, unsigned int)'
>
...
>
> Then, compile & link following command:
> # g++ -lcrypto -lrados -lcrush get_obj.cc
> /tmp/cctA2uA8.o: In function `main':
> get_obj.cc:(.text+0x315): undefined reference to
> `librados::Rados::read(void*, std::basic_string<char,
> std::char_traits<char>, std::allocator<char> > const&, long,
> ceph::buffer::list&, unsigned int)'
> collect2: ld returned 1 exit status
>
> Do you have any idea with this?
>

What librados version is installed? Are you compiling from source?

Thanks,
Yehuda
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to