博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
boost 1.52在windows下的配置
阅读量:7066 次
发布时间:2019-06-28

本文共 552 字,大约阅读时间需要 1 分钟。

// test_for_static_lib.cpp : Defines the entry point for the console application.

//
#include "stdafx.h"
#include <cstdio>
#include<iostream>
#include<boost/any.hpp>
int _tmain(int argc, _TCHAR* argv[])
{
    boost::any a(5);
    a=7.67;
    std::cout<<boost::any_cast<double>(a)<<std::endl;
    printf("%d",1);
    getchar();
    return 0;
}

 

 

下载单独静态编译好的lib,

以及window下的boost包,用于include 头文件

在工程的属性上选择头文件所在路径

在c++ general下选择Additonal Include Directories:放置头文件路径

D:\Documents\Downloads\boost_1_52_0\boost_1_52_0

 

在Linker general下选择Additonal Include Directories:放置静态库路径

C:\mao\lib32

转载地址:http://lqtll.baihongyu.com/

你可能感兴趣的文章
创建一个10G可用空间的RAID5
查看>>
snmp安装
查看>>
elasticsearch常用操作命令
查看>>
设置sqlplus提示符
查看>>
存储类说明符
查看>>
MySQL 简易序列
查看>>
nginx keepalive
查看>>
Markdown 语法说明
查看>>
CentOS 7.0安装配置LAMP服务器(Apache+PHP+MariaDB)
查看>>
Django 跨表查询--神奇的双下划线和点
查看>>
h3cte D图 搭建
查看>>
Linux 文件基本属性
查看>>
【转】js获取当前指定的前几天的日期(如当前时间的前七天的日期)
查看>>
javascript中对象字面量的理解
查看>>
centos 普通用户获得sudo超级权限
查看>>
Web内容管理系统 Magnolia
查看>>
tmux命令使用总结
查看>>
百度--买帽子
查看>>
SDWebImage的使用
查看>>
PC端和移动端测试区别
查看>>