It works fine when linking dynamic library. But when linking static library it will complains: > could not find native static library `xxx`, perhaps an -L flag is missing? Although I have configured LIB and LIBPATH to the correct path.