how to use a wrapper?

Im trying to use curl.h to write a program that reads urls...

i'm writing in c++, but when i link the program,
errors like these pop up:
1
2
elevation.obj : error LNK2019: unresolved external symbol __imp__curl_easy_cleanup referenced in function "struct fcurl_data * __cdecl url_fopen(char const *,char const *)" (?url_fopen@@YAPAUfcurl_data@@PBD0@Z)
elevation.obj : error LNK2019: unresolved external symbol __imp__curl_multi_remove_handle referenced in function "struct fcurl_data * __cdecl url_fopen(char const *,char const *)" (?url_fopen@@YAPAUfcurl_data@@PBD0@Z)


theres quite a few of them.

Will using a wrapper solve them? if yes how do i use it?
i got the wrapper in a .tar.gz file.
Last edited on
hmm i found the answer... but i have no idea how to solve it...

1
2
3
4
5
When building an application that uses the static libcurl library, you must
add -DCURL_STATICLIB to your CFLAGS. Otherwise the linker will look for
dynamic import symbols. If you get linker error like "unknown symbol
__imp__curl_easy_init ..." you have linked against the wrong (static)
library.
Last edited on
Topic archived. No new replies allowed.