Skip to content

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