vc60中编译ace 

 1.ace5.6中没有提供vc6的工程文件,可以利用MPC文件生成,网上有提供方法。ace5.5中提供了vc6的工程文件,以下以ace5.5为例。
在目录/ACE_wrappers/ace下创建文件config.h。文件内容如下
#ifndef ACE_CONFIG_H
#define ACE_CONFIG_H

#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */

//在mfc的程序中使用的ace.dll,必须是定义了ACE_HAS_MFC编译的,否则会有内存泄漏等问题。
//在使用标准C++类的程序中使用的ace.dll,最好是定义了ACE_HAS_STANDARD_CPP_LIBRARY编译的。

//If you want to use the standard C++ headers (iostream, cstdio, ... as defined by the C++ Standard Draft 2)
//that comes with MSVC, then add the line:
#define ACE_HAS_STANDARD_CPP_LIBRARY 1

//To use ACE with MFC libraries, also add the following to your config.h file.
//Notice that if you want to spawn a new thread with CWinThread,
//make sure you spawn the thread with THR_USE_AFX flag set.
#define ACE_HAS_MFC 1

//By default, all of the ACE projects use the DLL versions of the MSVC run-time libraries.
//You can still choose use the static (LIB) versions of ACE libraries regardless of run-time libraries.
//The reason we chose to link only the dynamic run-time library is that almost every NT box has these library installed and to save disk space.
//If you prefer to link MFC as a static library into ACE, you can do this by defining ACE_USES_STATIC_MFC in your config.h file.
//However, if you would like to link everything (including the MSVC run-time libraries) statically,
//you'll need to modify the project files in ACE yourself.
#define ACE_USES_STATIC_MFC 1  
   
//Static version of ACE libraries are built with ACE_AS_STATIC_LIBS
//defined. This macro should also be used in application projects that link to static ACE libraries   
//编译和使用静态链接库时,必须使用下面行的定义
//#define ACE_AS_STATIC_LIBS 1

//before the #include statement in ACE_ROOT/ace/config.h to disable inline function and reduce the size of static libraries (and your executables.)
//Optionally you can also add the line
//#define ACE_NO_INLINE 1

//该行必须在所有定义的后面
#include "ace/config-win32.h"

#endif /* ACE_CONFIG_H */
2.工程属性修改。打开工程属性设置窗口,将红色圈标示的属性设置为如图所示,如果与表示相同则不需修改。

3.保存工程,编译。

4.ACE与vs集成。以下以ace在D盘根目录下为例子,D:/ACE_wrappers。

打开 Tools>Options>Directories
加入以下内容:

Include File:
D:/ACE_wrappers/
D:/ACE_wrappers/
ace

Library Files:
D:/ACE_wrappers/lib

Source Files:
D:/ACE_wrappers/
D:/ACE_wrappers/
ace

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
VC2013是Visual Studio 2013的简称,libkml是一个开源C++库,用于读取和写入KML格式的地理空间数据。如果要在VC2013编译libkml,可以按照以下步骤进行操作: 1. 下载libkml的源代码:可以从libkml的官方网站或GitHub上下载最新版本的源代码。 2. 解压源代码:将下载的源代码压缩包解压到本地的一个目录。 3. 打开Visual Studio 2013:确保已经安装了VC2013,并打开Visual Studio 2013。 4. 创建新的空项目:在Visual Studio 2013创建一个新的空项目,在项目文件夹添加libkml的源代码文件。 5. 配置编译器:在Visual Studio 2013的项目属性,选择正确的编译器,确保项目正确地使用VC2013的编译器进行编译。 6. 配置编译选项:在项目属性,设置编译选项,如编译目标(x86或x64)、附加库目录和附加包含目录等,以确保编译器能正确地找到libkml的依赖文件和头文件。 7. 编译项目:点击Visual Studio 2013的“生成”按钮或使用快捷键F7进行编译项目。编译器将编译libkml的源代码,并生成可执行文件或库文件。 8. 解决编译错误:如果编译过程出现错误,可以查看错误信息并逐个修复,可能需要对编译选项进行调整或引入缺少的依赖文件。 9. 运行代码:编译成功后,可以运行生成的可执行文件或库文件,验证libkml在VC2013的正常运行。 以上就是在VC2013编译libkml的大致步骤,具体操作可能会因libkml的版本和系统环境而有所差异。建议在编译之前阅读libkml的文档或查找相关的教程,以获取更详细的指导。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

new_stranger

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值