8000 Export symbols on windows. by chrisdembia · Pull Request #60 · docopt/docopt.cpp · GitHub
[go: up one dir, main page]

Skip to content

Export symbols on windows. #60

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

Merged
merged 1 commit into from
Sep 4, 2016

Conversation

chrisdembia
Copy link
Contributor
@chrisdembia chrisdembia commented Aug 26, 2016

This PR fixes the issue raised by @klshrinidhi in #57. Basically, MSVC should have produced a docopt.lib file but it did not because no symbols were exported. See here.

So, this PR causes two functions to be exported (available for use by users of docopt.dll) using a set of macros that are commonly used to handle this scenario; see here and here.

As a result, a docopt.lib file is now produced, thus allowing Windows/MSVC users to make use of the docopt.dll shared library.

@chrisdembia
Copy link
Contributor Author

@GamePad64 please let me (and @jaredgrubb) know if you have any thoughts about this PR.

@GamePad64
Copy link
Contributor

Looks good to me

@chrisdembia
Copy link
Contributor Author

Looks good to me

Thank you for taking a look.

@chrisdembia
Copy link
Contributor Author

@jaredgrubb when you have a chance, I would greatly appreciate it if you could look at this PR. The original author of the CMake changes is okay with the changes. I will gladly address any issues that result from this change in the future.

Once this PR is merged, I can start using docopt in my own project :). This library will allow my project to have a very useful command line interface.

@jaredgrubb
Copy link
Member

Looks good to me!

@jaredgrubb jaredgrubb merged commit 725519e into docopt:master Sep 4, 2016
@chrisdembia
Copy link
Contributor Author

Thank you!

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
0