Hi, Oh sorry I didn't describe the environment. The distribution is CentOS 5.5 x86, gcc is 4.1.2. I tried both current source code from git and version 0.20.2 source code. I also tried to implement the other operations, these codes are could compiled successfully. ex) http://github.com/syuu1228/radoscmds/blob/master/put_obj.cc This uses rados->write_full(). And most of the codes are borrowed from rgw/rgw_rados.cc and rados.cc. 2010/7/16 Yehuda Sadeh Weinraub <yehudasa@xxxxxxxxx>: > On Thu, Jul 15, 2010 at 7:52 AM, Takuya ASADA <syuu@xxxxxxxxxxxx> 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 majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html