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

Suppress linker warning 4221 for MSVC #2583

Merged
merged 1 commit into from
May 20, 2017
Merged

Suppress linker warning 4221 for MSVC #2583

merged 1 commit into from
May 20, 2017

Conversation

timou
Copy link
Contributor

@timou timou commented May 20, 2017

Problem:

Some #define switches cause the body of entire files to be omitted. This
causes a linker warning on Visual Studio 2017, for example

warning LNK4221: This object file does not define any previously
undefined public symbols, so it will not be used by any link
operation that consumes this library

Solution:

Add a linker flag to suppress this warning on MSVC builds.

Some #define switches cause the body of entire files to be omitted. This
causes a linker warning on Visual Studio 2017, for example

    warning LNK4221: This object file does not define any previously
    undefined public symbols, so it will not be used by any link
    operation that consumes this library

Since this is warning us about something that shouldn't be
earth-shattering news, we add a linker flag to suppress this warning on
MSVC builds.
@c-rack c-rack merged commit ec56eaa into zeromq:master May 20, 2017
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.

2 participants