sunlifeng / ctpcsharpadapter

Automatically exported from code.google.com/p/ctpcsharpadapter
0 stars 0 forks source link

Compile ERROR ( link issue ) #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. still cannot compile it successfully, even the two lib files are included
2.
3.

What is the expected output? What do you see instead?
错误  1   error LNK2028: 无法解析的标记(0A0002D8) "public: static class 
CThostFtdcMdApi * __cdecl CThostFtdcMdApi::CreateFtdcMdApi(char const *)" 
(?CreateFtdcMdApi@CThostFtdcMdApi@@$$FSAPAV1@PBD@Z),该标记在函数 
"public: int __clrcall CTP::CTPMDAdapter::Start(void)" 
(?Start@CTPMDAdapter@CTP@@$$FQ$AAMHXZ) 中被引用 CTPMd.obj   CTP
错误  2   error LNK2028: 无法解析的标记(0A000317) "public: static class 
CThostFtdcTraderApi * __cdecl CThostFtdcTraderApi::CreateFtdcTraderApi(char 
const *)" 
(?CreateFtdcTraderApi@CThostFtdcTraderApi@@$$FSAPAV1@PBD@Z),该标记在函数
 "public: int __clrcall CTP::CTPTraderAdapter::Start(void)" 
(?Start@CTPTraderAdapter@CTP@@$$FQ$AAMHXZ) 中被引用 TraderSpi.obj   CTP
错误  3   error LNK2019: 无法解析的外部符号 "public: static class 
CThostFtdcMdApi * __cdecl CThostFtdcMdApi::CreateFtdcMdApi(char const *)" 
(?CreateFtdcMdApi@CThostFtdcMdApi@@$$FSAPAV1@PBD@Z),该符号在函数 
"public: int __clrcall CTP::CTPMDAdapter::Start(void)" 
(?Start@CTPMDAdapter@CTP@@$$FQ$AAMHXZ) 中被引用 CTPMd.obj   CTP
错误  4   error LNK2019: 无法解析的外部符号 "public: static class 
CThostFtdcTraderApi * __cdecl CThostFtdcTraderApi::CreateFtdcTraderApi(char 
const *)" 
(?CreateFtdcTraderApi@CThostFtdcTraderApi@@$$FSAPAV1@PBD@Z),该符号在函数
 "public: int __clrcall CTP::CTPTraderAdapter::Start(void)" 
(?Start@CTPTraderAdapter@CTP@@$$FQ$AAMHXZ) 中被引用 TraderSpi.obj   CTP
错误  5   fatal error LNK1120: 4 个无法解析的外部命令   CTP.dll CTP

What version of the product are you using? On what operating system?
VS2008

Please provide any additional information below.

Original issue reported on code.google.com by LiquidTh...@gmail.com on 7 Dec 2010 at 3:07

GoogleCodeExporter commented 9 years ago
Fixed, caused by conflict of lib version

Original comment by LiquidTh...@gmail.com on 7 Dec 2010 at 5:24

GoogleCodeExporter commented 9 years ago
I'm using vs 2008 express.  Your error may be cause the version lib and .h file 
did not match or something else did not match exactly.

Original comment by sunlif...@gmail.com on 1 Jan 2011 at 3:47