"Krzysztof Fediuk" <[email protected]> wrote:

mlib project is supposed to be a common part of all apps and because of that i've set this project as a static library. I've added all necessary paths and libcurl_static.lib file to be linked. This project compiles fine.

A "-DCURL_STATICLIB" in your CFLAGS then?

In the second project i've added mlib as a reference and when building this project i get unresolved external symbol linker error on every curl function.

I'm not so experienced in C++, but i thought that after making mlib file everything should be included there, so I can only depend on this particular file?

You cannot unless mlib uses libcurl dynamically. If mlib is a static lib, then the final linking stage must also include libcurl_static.lib (normally added after mlib.lib). Also read http://curl.haxx.se/docs/faq.html. Section 5.7.

--gv
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to