libmemcached 编译错误 libmemcached/auto.cc: In function ‘memcached_return_t text_incr_decr(memcached_server_st*, bool, const char*, size_t, uint64_t, bool)’:

编译libmemcached1.0.6时出现
libmemcached/auto.cc: In function ‘memcached_return_t text_incr_decr(memcached_server_st*, bool, const char*, size_t, uint64_t, bool)’:
libmemcached/auto.cc:73: error: expected `)’ before ‘PRIu64’
是gcc版本过低,需要更新并且设置全局变量。

首先
yum install gcc44 gcc44-c++ libstdc++44-devel
export CC=/usr/bin/gcc44
export CXX=/usr/bin/g++44

然后重新编译即可

Java HelloWorld

public class HelloWorld {
    public static void main(String[] args) {
        System.out.println("Hello World!");
    }
}

return top