Skip to content

Windows DLL #1921

Answered by owent
ModeZt asked this question in Q&A
Jan 12, 2023 · 3 comments · 3 replies
Discussion options

You must be logged in to vote

As stated in https://github.com/open-telemetry/opentelemetry-cpp/blob/main/INSTALL.md you are not allowed to build a windows DLL:

For now, OpenTelemetry C++ targets need to be statically linked into the Windows applications.

Can I make a workaround like this:

1. Create a WrapperDll that is statically linked with OTEL

2. Dinamically load WrapperDll in my application?

I've inspected the topic: #1269 and still have a hope that my workaround could work

Yes, if you don't export any API or data struct of otel-cpp in your WrapperDll.

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by ModeZt
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@malkia
Comment options

@malkia
Comment options

@lalitb
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants