求问这个 your application must be compiled with the define shown above怎么理解 APR Win32 Builds and
求问这个 your application must be compiled with the define shown above怎么理解
APR Win32 Builds and Debugging
Configuration and Flavors
The Win32 APR Developer Studio projects consist of
apr/apr.dsp
Builds the static apr.lib library (-D APR_DECLARE_STATIC)
In order to prepare to use apr.lib library, your application must be compiled with the define shown above, so that the correct linkage is created.
怎么做到compiled with the define shown above?是#define APR_DECLARE_STATIC吗?好像不对
是这样吗?链接器的输入里面也加了相应的lib文件,可怎么还是无法解析外部符号呢
VC里面那个-D不要了,直接 APR_DECLARE_STATIC
还是不行……
你的目的是想编译一个lib库,还是要使用一个apr.lib。
我感觉这个说明的意思应该是使用这个库的时候加这个宏而不是编译出这个库的时候加吧?
这个只会影响编译的,可能你库加的不对,头文件和lib都添加了吗,是否有dll文件。
[解决办法]
解决方案属性里面加上这个宏
