Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added 'tbs' library link #205

Merged
merged 1 commit into from
Mar 21, 2024
Merged

Conversation

UsaRandom
Copy link

when building for shared libs for win32, net, and tpm2

unresolved external symbols 'Tbsi_Context_Create, Tbsip_Context_Close, and Tbsip_Submit_Command' in dogecoin_generate_mnemonic_encrypt_with_tpm().

fixes build due error due to unresolved external symbols 'Tbsi_Context_Create, Tbsip_Context_Close, and Tbsip_Submit_Command' in dogecoin_generate_mnemonic_encrypt_with_tpm()

Signed-off-by: nowon <[email protected]>
Copy link
Collaborator

@edtubbs edtubbs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK, good catch! I was able to reproduce with: cmake .. -DBUILD_SHARED_LIBS=ON -DWITH_NET=ON -DUSE_TPM2=ON.

Copy link
Member

@xanimo xanimo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK. Tested on 64-bit windows and ubuntu jammy wsl. On 64-bit windows, running

 cmake .. -DBUILD_SHARED_LIBS=ON -DWITH_NET=ON -DUSE_TPM2=ON
cmake --build .

resolves unresolved external symbol found in seal.obj:

seal.obj : error LNK2019: unresolved external symbol Tbsi_Context_Create referenced in function dogecoin_generate_mnemonic_encrypt_with_tpm [C:\Users\dakod\source\repos\libdogecoin\build\dogecoin.vcxproj]
seal.obj : error LNK2019: unresolved external symbol Tbsip_Context_Close referenced in function dogecoin_generate_mnemonic_encrypt_with_tpm [C:\Users\dakod\source\repos\libdogecoin\build\dogecoin.vcxproj]
seal.obj : error LNK2019: unresolved external symbol Tbsip_Submit_Command referenced in function dogecoin_generate_mnemonic_encrypt_with_tpm [C:\Users\dakod\source\repos\libdogecoin\build\dogecoin.vcxproj]
C:\Users\dakod\source\repos\libdogecoin\build\Debug\dogecoin.dll : fatal error LNK1120: 3 unresolved externals [C:\Users\dakod\source\repos\libdogecoin\build\dogecoin.vcxproj]

so yeah good catch!

@xanimo xanimo merged commit 306d6b2 into dogecoinfoundation:0.1.4-dev Mar 21, 2024
15 checks passed
@UsaRandom UsaRandom deleted the patch-1 branch March 21, 2024 04:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants