I need help about can't find the directory

bingwa 2010-12-06 03:49:07

#include <iostream>
#include <tuple>
#include <tuple>
//#include <tuple_comparison.hpp>
//#include <tuple_io.hpp>
using namespace std;

void main()
{
tuple<int,char,float> t(2,'a',0.9);
//std::cout<<t<<endl;
}


tuple<int,char,float> t(2,'a',0.9) is ok.
but if I add the header file tuple_comparison.hpp tuple_io.hpp,
it will throw the error"No such file or directory".
In my properies of the solution,I have added the "boost_1_45_0\boost"
I don't know ther how to resove it.
plz give your hands.thanks

...全文
113 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
liutengfeigo 2010-12-06
  • 打赏
  • 举报
回复
bingwa 2010-12-06
  • 打赏
  • 举报
回复
thans guys,maybe it's some differece in the vs2010 for adding lib folder into the solution.so I'll try it later and close the discussion.
skipjack36 2010-12-06
  • 打赏
  • 举报
回复
In my opinion, it is better to add "boost_1_45_0" to the property of the solution.
And when you include header in boost, you can write #include <boost/...>, such as #include <boost/regex.hpp>
笨笨周0915 2010-12-06
  • 打赏
  • 举报
回复
[Quote=引用 7 楼 skipjack36 的回复:]

you can try #include <tuple/tuple_comparison.hpp>
[/Quote]
+1
skipjack36 2010-12-06
  • 打赏
  • 举报
回复
you can try #include <tuple/tuple_comparison.hpp>
liutengfeigo 2010-12-06
  • 打赏
  • 举报
回复
昏。都是英语高手啊。
bingwa 2010-12-06
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 yihandrensunyong 的回复:]
I know the reason,But I can not say it in English exactly,Sorry...BYE BYE
[/Quote]
sorry,there is no chinese simplified charactor input in my sysytem,so can't type the chinese.
bingwa 2010-12-06
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 cnike 的回复:]
如果你在你的工程目录的include文件中包含了boost_1_45_0\boost 那么确定下 boost 和 tuple_comparison.hpp 的层次关系
[/Quote]
Yeah, I have found the file tuple_io.hpp in the file folder <tuple> which is in <boost>.
yihandrensunyong 2010-12-06
  • 打赏
  • 举报
回复
I know the reason,But I can not say it in English exactly,Sorry...BYE BYE
笨笨周0915 2010-12-06
  • 打赏
  • 举报
回复
如果你在你的工程目录的include文件中包含了boost_1_45_0\boost 那么确定下 boost 和 tuple_comparison.hpp 的层次关系
Csuxiaowu 2010-12-06
  • 打赏
  • 举报
回复
may be is
#include "boost/tuple/tuple_comparison.hpp"
just have a try

64,282

社区成员

发帖
与我相关
我的任务
社区描述
C++ 语言相关问题讨论,技术干货分享,前沿动态等
c++ 技术论坛(原bbs)
社区管理员
  • C++ 语言社区
  • encoderlee
  • paschen
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
  1. 请不要发布与C++技术无关的贴子
  2. 请不要发布与技术无关的招聘、广告的帖子
  3. 请尽可能的描述清楚你的问题,如果涉及到代码请尽可能的格式化一下

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