Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't use seek() function #11

Open
GoogleCodeExporter opened this issue Mar 23, 2015 · 1 comment
Open

can't use seek() function #11

GoogleCodeExporter opened this issue Mar 23, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

operation system: centos 6.2 64-bit

kfs version: kfs-0.5 

when I compile the KfsSample_main.cc file, it has same erros: 


make all 
Building file: ../kfstest.cpp
Invoking: GCC C++ Compiler
g++ -I/home/altair/code/kfs/include/kfs -O0 -g3 -Wall -c -fmessage-length=0 
-MMD -MP -MF"kfstest.d" -MT"kfstest.d" -o"kfstest.o" "../kfstest.cpp"
Finished building: ../kfstest.cpp

Building target: KfsTestSample
Invoking: GCC C++ Linker
g++  -o"KfsTestSample"  ./kfstest.o  
/home/altair/code/kfs/lib/static/libkfsClient.a 
/home/altair/code/kfs/lib/static/libkfsCommon.a 
/home/altair/code/kfs/lib/static/libkfsEmulator.a 
/home/altair/code/kfs/lib/static/libkfsIO.a 
/home/altair/code/kfs/lib/static/libkfsMeta.a 
/home/altair/code/kfs/lib/static/libqcdio.a 
/home/altair/code/kfs/lib/static/libtools.a -lpthread -lcrypto -lrt
./kfstest.o: In function `main':
/home/altair/workspace/KfsTestSample/Debug/../kfstest.cpp:193: undefined 
reference to `KFS::KfsClient::Seek(int, long)'
collect2: ld returned 1 exit status
make: *** [KfsTestSample] Error 1


the code that I use seek() is:
    gKfsClient->Seek(fd, (off_t)40);


the complier force (off_t)40 convert to long int;and can't find 
Seek(int,off_t) define.Has I done something wrong?Hope to get some help,thank!



Original issue reported on code.google.com by [email protected] on 29 Jun 2012 at 6:16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant