求问这个 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吗?好像不对
...全文
393 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了。你的程序里已经能够识别宏了,是一个预置宏。
下载代码方式:https://pan.quark.cn/s/a4b39357ea24 【创新7.1声卡KX驱动+连线图】是一款专门为创新公司所制造的7.1音频声卡量身定制的驱动方案,其核心宗旨在于为用户带来超越官方原生驱动程序的卓越音质感受。KX驱动属于一种由爱好者群体自主开发的非官方驱动软件,该驱动在Creative公司原版驱动程序的基础上进行了深度改良与功能扩充,旨在提供更为多样化的声音调节参数以及更为出色的运行表现。 我们现在来详细认识一下7.1声道系统。7.1声道代表的是一种沉浸式音频技术规范,该规范包含七个全频域音箱单元(具体包括前置左声道、前置右声道、中央声道、环绕左声道、环绕右声道、后置左声道以及后置右声道)搭配一个低频震动单元,其设计目的是为用户构建更加立体且逼真的听觉场景,尤其适合应用于电子游戏、电影观影以及音乐欣赏等场景。 KX驱动的独到之处在于其赋予了用户更为广阔的个性化定制权限,使用者能够依据自身的听音偏好对音频参数进行细致调节,例如均衡器参数、混响效果、压缩比设定、噪声抑制门限等,从而使得最终的音效呈现出更为精致且个性化的特质。不仅如此,KX驱动还兼容VST插件机制,该机制是虚拟乐器与音频效果处理软件的通用标准,用户通过安装各式各样的VST插件,能够进一步增强声卡的实用功能,例如模拟多种乐器音色或达成复杂的声音效果制作。 在获取并部署KX驱动程序之后,对"连线图"的正确导入工作具有决定性意义。连线图又被称为音频路由配置图或信号流向示意图,它是一份用于指导用户如何正确配置并连接各个音频输出通道的视觉化手册。对于非专业背景的使用者而言,准确设定这些音频通道可能会面临一定程度的困难,因此连线图的提供极大地简化了这一过程。依照连线图进行配置操...
内容概要:本文介绍了基于粒子群优化算法(PSO)优化长短期记忆网络(LSTM)的电力负荷预测方法,并通过Python代码实现。该方法结合PSO强大的全局搜索能力,对LSTM模型的关键超参数进行智能寻优,有效提升了模型在处理非线性、强时序性电力负荷数据时的预测精度与泛化性能。文中系统阐述了从数据预处理、模型构建、PSO优化流程到预测结果分析的完整技术链条,重点展示了如何通过优化算法克服传统LSTM参数依赖经验设定的局限性,为复杂时间序列预测提供了高效解决方案。; 适合人群:具备一定Python编程能力和机器学习基础知识,从事电力系统分析、能源管理、负荷预测等相关领域的研究人员、工程师以及高校研究生。; 使用场景及目标:①应用于电力系统的短期与中期负荷预测,提升电网调度的准确性与经济性;②作为智能优化算法与深度学习融合的典型范例,用于科研项目开发与教学实践;③目标在于通过超参数自动优化,显著降低预测模型的均方根误差(RMSE)和平均绝对百分比误差(MAPE),增强模型的鲁棒性与实用性。; 阅读建议:建议读者结合所提供的完整Python代码,深入理解PSO优化LSTM的具体实现过程,重点关注适应度函数的设计、参数编码方式及优化迭代机制,并鼓励在自有数据集上进行复现实验与调参优化,以深刻掌握模型性能提升的技术路径。

70,040

社区成员

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

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