Menu

how to compile the KfsSample_main.cc

2008-02-21
2013-04-25
  • forrest guan

    forrest guan - 2008-02-21

    Hi all:
        I read the apps_int.txt,but can not find the file KfsTest_main.cc.
    The only file I can find is KfsSample_main.cc. But there are some syntax
    error in it.Although I have found some and corrected,I still can not success to compile the KfsSample_main.cc
        If you know how to compile the source file,please told me.
        Thank you very much!
        Is it right:
        g++ -Wall -g -o test_sample /root/kfs/examples/test_sample.cc /root/kfs/build/lib-static/libkfsClient.a -I/root/kfs/src/cc -I/usr/local/include/boost-1_34_1

    Thanks
    darkzealot_guan

     
    • forrest guan

      forrest guan - 2008-02-22

      Hi all:

        Sorry,I miss one lib of log4cpp.
        It is ok now:
        /usr/local/bin/c++ -Wall -g -o test_sample /root/kfs/examples/test_sample.cc -I/usr/local/include/boost-1_34_1 -I/root/kfs/src/cc -L/root/kfs/build/src/cc/libkfsClient -lkfsClient -llog4cpp

       
    • forrest guan

      forrest guan - 2008-02-22

      Hi all:

        Sorry,I miss one lib of log4cpp.
        It is ok now:
        /usr/local/bin/c++ -Wall -g -o test_sample /root/kfs/examples/test_sample.cc -I/usr/local/include/boost-1_34_1 -I/root/kfs/src/cc -L/root/kfs/build/src/cc/libkfsClient -lkfsClient -llog4cpp

      darkzealot_guan

       

Log in to post a comment.