Skip to content
Discussion options

You must be logged in to vote

Current Conan configuration builds tgbot-cpp itself statically by default, but that does not automatically guarantee a single self-contained EXE: libcurl/OpenSSL and the MSVC runtime must also be linked statically.

Build a Release configuration and inspect the result with:

dumpbin /DEPENDENTS YourTelegramBot.exe

If non-system DLLs are listed, either build those dependencies statically with the same Conan profile or place the matching Release DLLs beside the EXE. Install the Microsoft Visual C++ Redistributable when the dynamic MSVC runtime is used.

Do not deploy a Debug build or copy VCRUNTIME140_1D.dll: the D suffix is the debug CRT and it is not redistributable. Also, one EXE cannot be …

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
7 replies
@Amirhan-Taipovjan-Greatest-I
Comment options

@we-lu
Comment options

@Amirhan-Taipovjan-Greatest-I
Comment options

@we-lu
Comment options

@Amirhan-Taipovjan-Greatest-I
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by reo7sp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants