求问这个 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吗?好像不对
...全文
361 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了。你的程序里已经能够识别宏了,是一个预置宏。
内容概要:本文提出了一种改进的各向异性引导滤波器,通过引入加权平均策略,在实现最大程度平滑扩散的同时有效保留图像中的强边缘特征,从而实现强各向异性滤波效果。该方法在继承传统引导滤波器计算效率高、运行稳定优势的基础上,进一步增强了边缘保持能力与结构感知性能,适用于图像去噪、细节增强、边缘提取和多尺度分解等任务。文中配套提供了完整的Matlab代码实现方案,便于算法复现与实际应用,具有较强的工程实用性与科研参考价值。; 适合人群:具备一定图像处理理论基础和Matlab编程能力,从事计算机视觉、图像增强或滤波算法研究的科研人员与工程技术人员,尤其适合攻读硕士、博士学位并聚焦于图像预处理方向的研究者。; 使用场景及目标:①在图像预处理阶段去除噪声干扰的同时保持关键结构信息;②作为高层视觉任务(如语义分割、目标检测)的前置模块以提升输入图像质量;③支持学术研究中的滤波算法对比实验与性能评估,助力高水平论文撰写与算法创新。; 阅读建议:建议读者结合所提供的Matlab代码深入理解加权机制与各向异性扩散原理,重点分析局部窗口内权重矩阵的构建方式及其对滤波性能的影响,并推荐与双边滤波、标准引导滤波等经典方法进行可视化对比,以全面掌握其优势与适用边界。
源码下载地址: https://pan.quark.cn/s/7f242081e14c 标题 "普中51-A2开发板资料.7z" 提供的信息表明,这是一个与普中51-A2开发板相关的资源包。 51单片机是微控制器领域中的一个经典系列,STC-89C52是51系列中的一个型号,常用于教学和入门级项目。 这个压缩包可能包含了一系列帮助用户理解和使用该开发板的材料。 描述中的"SHA256: B889D6FE71BF1CB25C67D57BE0854787F4D6902B20E2A1AF8FC9DEB66F4C7827"是文件的哈希值,用于验证文件的完整性和未被篡改,但具体知识点不在此范围内。 从标签来看,我们可以期待以下内容:1. **普中51-A2开发板**:这是一款基于51单片机的开发工具,可能包括硬件电路图、原理图、PCB设计文件等。 2. **STC-89C52**:这是51单片机的一个变种,具有增强的特性,如更多的I/O口、更大的内存等。 资料可能包含其数据手册、引脚定义、编程指南等。 3. **开发板**:可能包含开发板的使用手册、接线教程、初始化设置步骤等。 4. **51单片机**:基础理论、指令集、编程语言(如汇编或C语言)、中断系统、定时器/计数器的使用等。 5. **开发工具**:可能有Keil、Proteus、ISP编程软件等,这些工具用于编写、调试和烧录代码到单片机中。 从压缩包子文件的文件名称列表来看,我们可以深入学习以下内容:1. **普中51单片机开发攻略--A2.pdf**:这可能是开发板的用户指南或教程,涵盖基本操作、示例项目和常见问题解答。 2. **5--开发工具.rar**:可能包含开发环境的安装教程、配置指南和使用技巧。 3. **5--实验程序....

70,037

社区成员

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

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