-
9 votesanswersviews
使用boost :: filesystem时链接器错误?
我有以下代码: #include <iostream> #include <boost\filesystem.hpp> int main(){ const char* file_path = "my_path"; std::cout << boost::filesystem::file_size(file_path) <... -
0 votesanswersviews
迭代并比较map <string,vector <string >> c中的值
我使用boost :: filesystem库在c 17中编写了一个程序,该库将路径作为参数并返回一个映射: map<string, vector<string>> 其中每个键都是一个目录(boost :: filesystem :: path转换为字符串),每个目录中的每个文件都被推送到值向量 . 首先,我从作为参数给出的路径创建路径向量: // Method to c... -
2 votesanswersviews
从Visual Studio 2008切换到Visual Studio 2010,现在无法链接到boost文件系统
我刚刚从Visual Studio 2008切换到Visual Studio 2010,我的一个项目现在收到链接器错误: 链接:致命错误LNK1104:无法打开文件'libboost_filesystem-vc90-mt-gd-1_46_1.lib' 我做了重建boost,我在lib文件夹中看到了vc10库,但我无法弄清楚为什么/它仍然引用vc90库?我检查了链接器属性,我指向正确的文件夹(即vc...