Hi, Philip
I have a question about the following macros in pcreposix.h
After the changes, the following two lines look like this:
# define PCREPOSIX_EXP_DECL extern __declspec(dllimport)
# define PCREPOSIX_EXP_DEFN __declspec(dllexport)
When I compile the library, I use the "dllexport" because the DEFN
macro is used by the pcreposix.c. When I compile the application, I
use the "dllimport" because the declaration in pcreposix.h is
"PCREPOSIX_EXP_DECL int regcomp(...)". Did I understand right?
For now the problems I can see is when linking with the static
library, with the some tricky reason, the export symbol in the static
library is __imp__pcre_fullinfo which will cause undefined reference
error during the linking stage, it should be __pcre_fullinfo:
$ nm .libs/libpcrecpp.a |grep imp
U __imp____mb_cur_max
U __imp___pctype
U __imp__pcre_compile
U __imp__pcre_config
U __imp__pcre_exec
U __imp__pcre_free
U __imp__pcre_fullinfo
I will figure it out and get back later.
Regards,
Andy