views:

411

answers:

2
A: 

Usually people get this error when they are trying to #include a library's header file with the library's "EXPORT" macro defined. curlpp must have some macro, usually found in code that looks like this:

ifdef NATIVEDLL_EXPORTS

define NATIVEDLL_API extern "C" __declspec(dllexport)

else

define NATIVEDLL_API __declspec(dllimport)

endif

and you have the NATIVEDLL_EXPORTS defined in the preprocessor. Remove this definition. ppcurl won't be called "NATIVEDLL_EXPORTS", it will have some name of its own.

Macker
+1  A: 

Take a look at \include\curlpp\internal\buildconfig.h file where there are the following macros defined

CURLPPAPI
CURLPP_INCLUDE_TEMPLATE_DEFINITIONS
CURLPP_TEMPLATE_EXPLICIT_INSTANTIATION

based on values of these three macros

CURLPP_STATICLIB
BUILDING_CURLPP
CURLPP_SELF_CONTAINED

Read about them in README.win32 file and define above three macros accordingly.
In case you still have a problem let us know.

By the way; today I put current version of curlpp for downloading curlpp-current.2009.05.21

Piotr Dobrogost