Skip to content

How to compile C code that uses curl library correctly? #41

Answered by vszakats
ago-char asked this question in Q&A
Discussion options

You must be logged in to vote

We had a recent discussion about static linking (though dynamic linking to libcurl DLL should be (much) simpler): #39

The linker command of the curl tool as it appears in the public build log may also serve as an example:
https://ci.appveyor.com/project/curlorg/curl-for-win/build/1.0.1813/job/0g06bdnijigxuw34?fullLog=true#L10450

Exact details will depend on compiler / toolchain / env / version / etc. So, not a comprehensive answer, but I hope it helps.

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@ago-char
Comment options

Answer selected by vszakats
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants