1
如何將msvcrt.lib
與delphi鏈接?我正嘗試將Delphi文件鏈接到.obj
文件。它的工作原理,但它有太多缺失的依賴關係。如何鏈接msvcrt.lib?
[dcc32 Error] Project1.dpr(24): E2065 Unsatisfied forward or external declaration: '__purecall'
[dcc32 Error] Project1.dpr(24): E2065 Unsatisfied forward or external declaration: '[email protected]@Z'
[dcc32 Error] Project1.dpr(24): E2065 Unsatisfied forward or external declaration: '[email protected]@Z'
[dcc32 Error] Project1.dpr(24): E2065 Unsatisfied forward or external declaration: '_atexit'
[dcc32 Error] Project1.dpr(24): E2065 Unsatisfied forward or external declaration: '__imp___hypot'
[dcc32 Error] Project1.dpr(24): E2065 Unsatisfied forward or external declaration: '__imp__memchr'
[dcc32 Error] Project1.dpr(24): E2065 Unsatisfied forward or external declaration: '__imp__memmove'
[dcc32 Error] Project1.dpr(24): E2065 Unsatisfied forward or external declaration: '[email protected]@@[email protected]'
[dcc32 Error] Project1.dpr(24): E2065 Unsatisfied forward or external declaration: '[email protected][email protected]@@QAEXXZ'
[dcc32 Error] Project1.dpr(24): E2065 Unsatisfied forward or external declaration: '[email protected]@@YAXXZ'
[dcc32 Error] Project1.dpr(24): E2065 Unsatisfied forward or external declaration: '[email protected]@@[email protected]'
[dcc32 Error] Project1.dpr(24): E2065 Unsatisfied forward or external declaration: '[email protected]@@[email protected]'
[dcc32 Error] Project1.dpr(24): E2065 Unsatisfied forward or external declaration: '[email protected]@@[email protected]'
[dcc32 Error] Project1.dpr(24): E2065 Unsatisfied forward or external declaration: '[email protected]@@[email protected]'
[dcc32 Error] Project1.dpr(24): E2065 Unsatisfied forward or external declaration: '[email protected]@@[email protected]'
[dcc32 Error] Project1.dpr(24): E2065 Unsatisfied forward or external declaration: '[email protected]@@[email protected]'
[dcc32 Error] Project1.dpr(24): E2065 Unsatisfied forward or external declaration: '[email protected]@@[email protected]'
[dcc32 Error] Project1.dpr(24): E2065 Unsatisfied forward or external declaration: '[email protected]@@[email protected]'
[dcc32 Error] Project1.dpr(24): E2065 Unsatisfied forward or external declaration: '@[email protected]'
[dcc32 Error] Project1.dpr(24): E2065 Unsatisfied forward or external declaration: '[email protected]'
[dcc32 Error] Project1.dpr(24): E2065 Unsatisfied forward or external declaration: '___CxxFrameHandler3'
[dcc32 Error] Project1.dpr(24): E2065 Unsatisfied forward or external declaration: '[email protected]@[email protected]'
[dcc32 Error] Project1.dpr(24): E2065 Unsatisfied forward or external declaration: '___security_cookie'
[dcc32 Error] Project1.dpr(24): E2065 Unsatisfied forward or external declaration: '__fltused'
你可以將函數包裝在extern「C」中,這就是我所做的。 – user3323367
這並不改變你的代碼是C++的事實。這只是改變了聯繫。在我看來,你實際上沒有成功的希望。將這段代碼編譯成一個DLL並以這種方式進行鏈接。 –
字符串類型可以使用從Delphi到C++ DLL嗎? – user3323367