Vector35 / binaryninja-api

Public API, examples, documentation and issues for Binary Ninja
https://binary.ninja/
MIT License
893 stars 199 forks source link

Compilation Failure #5745

Closed Decencies closed 1 month ago

Decencies commented 1 month ago

Version and Platform (required):

The problem When attempting to compile a plugin (from Rust) with MSVC 14.38.33130, the following errors are thrown:

error LNK2019: unresolved external symbol BNFreeRelocationList referenced in function _ZN95_$LT$binaryninja..relocation..Relocation$u20$as$u20$binaryninja..rc..CoreOwnedArrayProvider$GT$4free17hf8de5a29268efdb7E
error LNK2019: unresolved external symbol BNGetAnalysisTypeContainer referenced in function _ZN61_$LT$binaryninja..types..Type$u20$as$u20$core..fmt..Debug$GT$3fmt17h638ee282ee98c8dfE
error LNK2019: unresolved external symbol BNFreeTypeContainer referenced in function _ZN61_$LT$binaryninja..types..Type$u20$as$u20$core..fmt..Debug$GT$3fmt17h638ee282ee98c8dfE
error LNK2019: unresolved external symbol BNFreeTypeAndNameList referenced in function _ZN100_$LT$binaryninja..types..QualifiedNameAndType$u20$as$u20$binaryninja..rc..CoreOwnedArrayProvider$GT$4free17h773c5ec21df86477E
Decencies commented 1 month ago

It appears the issue may be related with my binary ninja version

fuzyll commented 1 month ago

~Are you using the master branch of the API with your 4.0 stable build? If you are, please also try the most recent 4.0 stable build, which is 4.0.5336.~

Sorry, we're in the middle of a release and it looks like master already got updated. You'll need to use the corresponding tag from here.