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

Windows: Fix dynamic library build with Visual Studio #319

Merged
merged 1 commit into from
Jul 9, 2017

Conversation

dhenot
Copy link
Contributor

@dhenot dhenot commented Apr 27, 2017

This allows to compile json-c as a dynamic library with Visual Studio. This is needed because declaring a function as extern is not enough to make this compiler export it, so the resulting library was not exporting anything. I also export a couple functions which weren't before, as I was getting undefined references otherwise.

As far as I know this should not break anything on other platforms but I didn't have time to confirm that.

@hawicz hawicz merged commit 4deed58 into json-c:master Jul 9, 2017
@HarmWibier
Copy link

It seems that this is preventing me from statically linking the json-c library with Visual Studio.

I was successfully using the json-c library and I am trying to update due to other changes but this seems to prevent me from doing that.

@HarmWibier
Copy link

I am sorry, I got it working now... I had some compiler settings wrong...

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