Skip to content

Non-Descriptive DLL Build Errors When Not Using MSVC #3437

@ThomsonTan

Description

@ThomsonTan

Windows DLL build is only supported for MSVC, but seems not all the places checks it in examples like below. When building DLL on windows with mingw, the error message will be very cryptic like "opentelemetry-cpp::opentelemetry_cpp target was not found". It will be helpful to error out the unsupported scenario instead of postpone it to the error of missing dependence.

if(DEFINED OPENTELEMETRY_BUILD_DLL)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriage/acceptedIndicates an issue or PR is ready to be actively worked on.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions