求问这个 your application must be compiled with the define shown above怎么理解

stormier 2013-08-30 07:29:18
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吗?好像不对
...全文
268 15 打赏 收藏 转发到动态 举报
写回复
用AI写文章
15 条回复
切换为时间正序
请发表友善的回复…
发表回复
EACCD3B1 2013-12-26
  • 打赏
  • 举报
回复
解决方案属性里面加上这个宏
碼上道 2013-09-01
  • 打赏
  • 举报
回复
用一个静态的lib,不应该有问题啊,奇怪了,具体的工程不知道,也不啥情况了。
碼上道 2013-08-31
  • 打赏
  • 举报
回复
引用 8 楼 stormier 的回复:
[quote=引用 7 楼 jerry_dqh 的回复:] [quote=引用 4 楼 stormier 的回复:] [quote=引用 3 楼 AnYidan 的回复:] [quote=引用 2 楼 stormier 的回复:] [quote=引用 1 楼 jerry_dqh 的回复:] [quote=引用 楼主 stormier 的回复:] 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吗?好像不对
这句话是说,叫你编译的时候加上一个编译选项 -DAPR_DECLARE_STATIC,静态编译。不需要加#define APR_DECLARE-STATIC了。你的程序里已经能够识别宏了,是一个预置宏。[/quote] vs里面怎么加编译选项[/quote] project-->properties-->c/c++-->preprocessor-->preprocessor definitions[/quote] 是这样吗?链接器的输入里面也加了相应的lib文件,可怎么还是无法解析外部符号呢[/quote] VC里面那个-D不要了,直接 APR_DECLARE_STATIC[/quote] 还是不行……[/quote] 你的目的是想编译一个lib库,还是要使用一个apr.lib。
max_min_ 2013-08-31
  • 打赏
  • 举报
回复
缺少编译选项
stormier 2013-08-31
  • 打赏
  • 举报
回复
引用 7 楼 jerry_dqh 的回复:
[quote=引用 4 楼 stormier 的回复:] [quote=引用 3 楼 AnYidan 的回复:] [quote=引用 2 楼 stormier 的回复:] [quote=引用 1 楼 jerry_dqh 的回复:] [quote=引用 楼主 stormier 的回复:] 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吗?好像不对
这句话是说,叫你编译的时候加上一个编译选项 -DAPR_DECLARE_STATIC,静态编译。不需要加#define APR_DECLARE-STATIC了。你的程序里已经能够识别宏了,是一个预置宏。[/quote] vs里面怎么加编译选项[/quote] project-->properties-->c/c++-->preprocessor-->preprocessor definitions[/quote] 是这样吗?链接器的输入里面也加了相应的lib文件,可怎么还是无法解析外部符号呢[/quote] VC里面那个-D不要了,直接 APR_DECLARE_STATIC[/quote] 还是不行……
碼上道 2013-08-31
  • 打赏
  • 举报
回复
引用 4 楼 stormier 的回复:
[quote=引用 3 楼 AnYidan 的回复:] [quote=引用 2 楼 stormier 的回复:] [quote=引用 1 楼 jerry_dqh 的回复:] [quote=引用 楼主 stormier 的回复:] 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吗?好像不对
这句话是说,叫你编译的时候加上一个编译选项 -DAPR_DECLARE_STATIC,静态编译。不需要加#define APR_DECLARE-STATIC了。你的程序里已经能够识别宏了,是一个预置宏。[/quote] vs里面怎么加编译选项[/quote] project-->properties-->c/c++-->preprocessor-->preprocessor definitions[/quote] 是这样吗?链接器的输入里面也加了相应的lib文件,可怎么还是无法解析外部符号呢[/quote] VC里面那个-D不要了,直接 APR_DECLARE_STATIC
stormier 2013-08-31
  • 打赏
  • 举报
回复
引用 12 楼 jerry_dqh 的回复:
[quote=引用 11 楼 stormier 的回复:] [quote=引用 9 楼 jerry_dqh 的回复:] [quote=引用 8 楼 stormier 的回复:] [quote=引用 7 楼 jerry_dqh 的回复:] [quote=引用 4 楼 stormier 的回复:] [quote=引用 3 楼 AnYidan 的回复:] [quote=引用 2 楼 stormier 的回复:] [quote=引用 1 楼 jerry_dqh 的回复:] [quote=引用 楼主 stormier 的回复:] 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吗?好像不对
这句话是说,叫你编译的时候加上一个编译选项 -DAPR_DECLARE_STATIC,静态编译。不需要加#define APR_DECLARE-STATIC了。你的程序里已经能够识别宏了,是一个预置宏。[/quote] vs里面怎么加编译选项[/quote] project-->properties-->c/c++-->preprocessor-->preprocessor definitions[/quote] 是这样吗?链接器的输入里面也加了相应的lib文件,可怎么还是无法解析外部符号呢[/quote] VC里面那个-D不要了,直接 APR_DECLARE_STATIC[/quote] 还是不行……[/quote] 你的目的是想编译一个lib库,还是要使用一个apr.lib。[/quote] 我感觉这个说明的意思应该是使用这个库的时候加这个宏而不是编译出这个库的时候加吧?[/quote] 这个只会影响编译的,可能你库加的不对,头文件和lib都添加了吗,是否有dll文件。[/quote] 库没有用错,就是用apr.lib,没有dll文件,这是静态库啊
碼上道 2013-08-31
  • 打赏
  • 举报
回复
引用 11 楼 stormier 的回复:
[quote=引用 9 楼 jerry_dqh 的回复:] [quote=引用 8 楼 stormier 的回复:] [quote=引用 7 楼 jerry_dqh 的回复:] [quote=引用 4 楼 stormier 的回复:] [quote=引用 3 楼 AnYidan 的回复:] [quote=引用 2 楼 stormier 的回复:] [quote=引用 1 楼 jerry_dqh 的回复:] [quote=引用 楼主 stormier 的回复:] 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吗?好像不对
这句话是说,叫你编译的时候加上一个编译选项 -DAPR_DECLARE_STATIC,静态编译。不需要加#define APR_DECLARE-STATIC了。你的程序里已经能够识别宏了,是一个预置宏。[/quote] vs里面怎么加编译选项[/quote] project-->properties-->c/c++-->preprocessor-->preprocessor definitions[/quote] 是这样吗?链接器的输入里面也加了相应的lib文件,可怎么还是无法解析外部符号呢[/quote] VC里面那个-D不要了,直接 APR_DECLARE_STATIC[/quote] 还是不行……[/quote] 你的目的是想编译一个lib库,还是要使用一个apr.lib。[/quote] 我感觉这个说明的意思应该是使用这个库的时候加这个宏而不是编译出这个库的时候加吧?[/quote] 这个只会影响编译的,可能你库加的不对,头文件和lib都添加了吗,是否有dll文件。
stormier 2013-08-31
  • 打赏
  • 举报
回复
引用 9 楼 jerry_dqh 的回复:
[quote=引用 8 楼 stormier 的回复:] [quote=引用 7 楼 jerry_dqh 的回复:] [quote=引用 4 楼 stormier 的回复:] [quote=引用 3 楼 AnYidan 的回复:] [quote=引用 2 楼 stormier 的回复:] [quote=引用 1 楼 jerry_dqh 的回复:] [quote=引用 楼主 stormier 的回复:] 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吗?好像不对
这句话是说,叫你编译的时候加上一个编译选项 -DAPR_DECLARE_STATIC,静态编译。不需要加#define APR_DECLARE-STATIC了。你的程序里已经能够识别宏了,是一个预置宏。[/quote] vs里面怎么加编译选项[/quote] project-->properties-->c/c++-->preprocessor-->preprocessor definitions[/quote] 是这样吗?链接器的输入里面也加了相应的lib文件,可怎么还是无法解析外部符号呢[/quote] VC里面那个-D不要了,直接 APR_DECLARE_STATIC[/quote] 还是不行……[/quote] 你的目的是想编译一个lib库,还是要使用一个apr.lib。[/quote] 我感觉这个说明的意思应该是使用这个库的时候加这个宏而不是编译出这个库的时候加吧?
stormier 2013-08-31
  • 打赏
  • 举报
回复
引用 9 楼 jerry_dqh 的回复:
[quote=引用 8 楼 stormier 的回复:] [quote=引用 7 楼 jerry_dqh 的回复:] [quote=引用 4 楼 stormier 的回复:] [quote=引用 3 楼 AnYidan 的回复:] [quote=引用 2 楼 stormier 的回复:] [quote=引用 1 楼 jerry_dqh 的回复:] [quote=引用 楼主 stormier 的回复:] 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吗?好像不对
这句话是说,叫你编译的时候加上一个编译选项 -DAPR_DECLARE_STATIC,静态编译。不需要加#define APR_DECLARE-STATIC了。你的程序里已经能够识别宏了,是一个预置宏。[/quote] vs里面怎么加编译选项[/quote] project-->properties-->c/c++-->preprocessor-->preprocessor definitions[/quote] 是这样吗?链接器的输入里面也加了相应的lib文件,可怎么还是无法解析外部符号呢[/quote] VC里面那个-D不要了,直接 APR_DECLARE_STATIC[/quote] 还是不行……[/quote] 你的目的是想编译一个lib库,还是要使用一个apr.lib。[/quote] 目的不是编译lib库啊,是要使用这个lib库
stormier 2013-08-31
  • 打赏
  • 举报
回复
引用 5 楼 max_min_ 的回复:
缺少编译选项
怎么弄???
stormier 2013-08-30
  • 打赏
  • 举报
回复
引用 3 楼 AnYidan 的回复:
[quote=引用 2 楼 stormier 的回复:]
[quote=引用 1 楼 jerry_dqh 的回复:]
[quote=引用 楼主 stormier 的回复:]
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吗?好像不对

这句话是说,叫你编译的时候加上一个编译选项 -DAPR_DECLARE_STATIC,静态编译。不需要加#define APR_DECLARE-STATIC了。你的程序里已经能够识别宏了,是一个预置宏。[/quote]
vs里面怎么加编译选项[/quote]

project-->properties-->c/c++-->preprocessor-->preprocessor definitions[/quote]


是这样吗?链接器的输入里面也加了相应的lib文件,可怎么还是无法解析外部符号呢
AnYidan 2013-08-30
  • 打赏
  • 举报
回复
引用 2 楼 stormier 的回复:
[quote=引用 1 楼 jerry_dqh 的回复:] [quote=引用 楼主 stormier 的回复:] 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吗?好像不对
这句话是说,叫你编译的时候加上一个编译选项 -DAPR_DECLARE_STATIC,静态编译。不需要加#define APR_DECLARE-STATIC了。你的程序里已经能够识别宏了,是一个预置宏。[/quote] vs里面怎么加编译选项[/quote] project-->properties-->c/c++-->preprocessor-->preprocessor definitions
stormier 2013-08-30
  • 打赏
  • 举报
回复
引用 1 楼 jerry_dqh 的回复:
[quote=引用 楼主 stormier 的回复:] 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吗?好像不对
这句话是说,叫你编译的时候加上一个编译选项 -DAPR_DECLARE_STATIC,静态编译。不需要加#define APR_DECLARE-STATIC了。你的程序里已经能够识别宏了,是一个预置宏。[/quote] vs里面怎么加编译选项
碼上道 2013-08-30
  • 打赏
  • 举报
回复
引用 楼主 stormier 的回复:
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吗?好像不对
这句话是说,叫你编译的时候加上一个编译选项 -DAPR_DECLARE_STATIC,静态编译。不需要加#define APR_DECLARE-STATIC了。你的程序里已经能够识别宏了,是一个预置宏。

69,371

社区成员

发帖
与我相关
我的任务
社区描述
C语言相关问题讨论
社区管理员
  • C语言
  • 花神庙码农
  • 架构师李肯
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧