由于ThostFtdcUserApiDataType中有两大处枚举类型无法转成Java,手工修改成以下内容
///银行发起银行资金转期货
#define THOST_FTDC_VTC_BankBankToFuture '0'
///银行发起期货资金转银行
#define THOST_FTDC_VTC_BankFutureToBank '1'
///期货发起银行资金转期货
#define THOST_FTDC_VTC_FutureBankToFuture '2'
///期货发起期货资金转银行
#define THOST_FTDC_VTC_FutureFutureToBank '3'
///银行发起银行转期货
#define THOST_FTDC_FTC_BankLaunchBankToBroker '0'
///期货发起银行转期货
#define THOST_FTDC_FTC_BrokerLaunchBankToBroker '1'
///银行发起期货转银行
#define THOST_FTDC_FTC_BankLaunchBrokerToBank '2'
///期货发起期货转银行
#define THOST_FTDC_FTC_BrokerLaunchBrokerToBank '3'
生成行情
$JAVA_HOME/bin/java -Xmx1g -jar ./jnaerator-0.12-SNAPSHOT-20130323-2.jar -library thostmduserapi ./ctp/libthostmduserapi.so ./ctp/ThostFtdcMdApi.h -o ./ -mode Jar -runtime BridJ
生成交易:
$JAVA_HOME/bin/java -Xmx1g -jar ./jnaerator-0.12-SNAPSHOT-20130323-2.jar -library thosttraderapi ./ctp/libthosttraderapi.so ./ctp/ThostFtdcTraderApi.h -o ./ -mode Jar -runtime BridJ
-mode Jar 改成 -mode Directory 刚生成源代码