Eugeny89
Eugeny89

Reputation: 3731

compiling project using curl on msvs2010

I'm developing a dll that uses libcurl. I builded lib with vc6curlsrc.dsw project (I found it into src folder of curl distributive). After I add libcurl.lib to dependences of profect I get

main.obj : error LNK2019: unresolved external symbol __imp__curl_easy_init referenced in function "private: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall ComappingApi::request(char * const)" (?request@ComappingApi@@AAE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAD@Z)

the same if I don't add libcurl.lib to dependences. Am I missing something!

Upvotes: 0

Views: 135

Answers (1)

Renan Greinert
Renan Greinert

Reputation: 3436

Is the lib correctly linked to the project?

If so, check if you are not missing the CURL_STATICLIB definition in the project.

Upvotes: 1

Related Questions