Skip to content

Instantly share code, notes, and snippets.

@ggicci
Last active August 29, 2015 13:58
Show Gist options
  • Save ggicci/10342928 to your computer and use it in GitHub Desktop.
Save ggicci/10342928 to your computer and use it in GitHub Desktop.
Error when linking KFS-0.5 client test program.
#include <iostream>
#include <string>
#include <kfs/KfsClient.h>
using std::cout;
using std::endl;
using namespace KFS;
KfsClientPtr gKfsClient;
int main(int argc, char const *argv[])
{
std::string serverHost = "localhost";
int port = 20000;
gKfsClient = getKfsClientFactory()->GetClient(serverHost, port);
if (!gKfsClient)
{
cout << "Kfs client failed to initialize... exiting" << endl;
return -1;
}
return 0;
}
CXX = g++
CXXFILES = main.cc
CXXFLAGS = -Wall -g -o prog -v
LIBS = -lboost_regex-mt -lkfsCommon -lkfsIO -lqcdio -lkfsClient
all:
$(CXX) $(CXXFILES) $(LIBS) $(CXXFLAGS)
.PHONY: clean
clean:
-rm -f prog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment