[問題] 請教這些錯誤碼通常要怎麼解決?
你好,
我的電腦是windows 8.1系統 平台是Visual Studio C++ 2013
我在群益卷商那下載他們提供的群益API,
總共有4個,分別是下單API,回報API,國內報價API,國外報價API
API下載網址:https://www.capital.com.tw/Service2/download/API.asp
他的4個API各自都有提供一個範例程式,
我試了回報API,國內報價API,國外報價API,都可正常編譯也可以使用,
只有下單API編譯不過,會有類似下面的link錯誤36個:
ForeignStockDlg.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) int __stdcall SendForeignStockOrder(wchar_t const
*,wchar_t const *,wchar_t const *,unsigned short,wchar_t const *,int,wchar_t
const *,wchar_t const *,wchar_t const *,int,wchar_t *,int *)"
(__imp_?SendForeignStockOrder@@YGHPB_W00G0H000HPA_WPAH@Z)
1>ForeignStockDlg.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) int __stdcall SendForeignStockOrderAsync(wchar_t const
*,wchar_t const *,wchar_t const *,unsigned short,wchar_t const *,int,wchar_t
const *,wchar_t const *,wchar_t const *,int,wchar_t *,int *)"
(__imp_?SendForeignStockOrderAsync@@YGHPB_W00G0H000HPA_WPAH@Z)
1>ForeignStockDlg.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) int __stdcall CancelForeignStockOrderBySeqNo(wchar_t
const *,wchar_t const *,wchar_t const *,wchar_t *,int *)"
(__imp_?CancelForeignStockOrderBySeqNo@@YGHPB_W00PA_WPAH@Z)
1>ForeignStockDlg.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) int __stdcall CancelForeignStockOrderByBookNo(wchar_t
const *,wchar_t const *,wchar_t const *,wchar_t *,int *)"
(__imp_?CancelForeignStockOrderByBookNo@@YGHPB_W00PA_WPAH@Z)
1>FutureDlg.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) int __stdcall SendFutureOrder(wchar_t const *,wchar_t
const *,unsigned short,unsigned short,unsigned short,wchar_t const
*,int,wchar_t *,int *)" (__imp_?SendFutureOrder@@YGHPB_W0GGG0HPA_WPAH@Z)
1>FutureDlg.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) int __stdcall SendFutureOrderAsync(wchar_t const
*,wchar_t const *,unsigned short,unsigned short,unsigned short,wchar_t const
*,int)" (__imp_?SendFutureOrderAsync@@YGHPB_W0GGG0H@Z)
1>FutureDlg.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) int __stdcall CancelOrderByStockNo(wchar_t const
*,wchar_t const *,wchar_t *,int *)"
(__imp_?CancelOrderByStockNo@@YGHPB_W0PA_WPAH@Z)
1>FutureDlg.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) int __stdcall CancelOrderBySeqNo(wchar_t const
*,wchar_t const *,wchar_t *,int *)"
(__imp_?CancelOrderBySeqNo@@YGHPB_W0PA_WPAH@Z)
1>FutureDlg.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) int __stdcall DecreaseOrderBySeqNo(wchar_t const
*,wchar_t const *,int,wchar_t *,int *)"
(__imp_?DecreaseOrderBySeqNo@@YGHPB_W0HPA_WPAH@Z)
環境設定:
我是使用Unicode
Use MFC in a shared DLL
Multi-threaded DLL(/MD)
Active(Win32)
請問有高手能知道以上bug怎麼解決嗎?
我是覺得是不是卷商提供的lib檔有問題,
要再請他們修改成和我一樣的設定再編譯,還是什麼原因呢?
--
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 223.136.142.41
※ 文章網址: https://www.ptt.cc/bbs/C_and_CPP/M.1446272074.A.3B5.html
→
10/31 14:15, , 1F
10/31 14:15, 1F
→
10/31 18:14, , 2F
10/31 18:14, 2F
→
10/31 18:14, , 3F
10/31 18:14, 3F
→
11/01 16:54, , 4F
11/01 16:54, 4F
→
11/01 16:55, , 5F
11/01 16:55, 5F
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章