本文介绍了如何使用boost bcp?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有bcp工具,它是由boost安装程序预先构建的.我想将我需要的依赖项从boost提取到一个较小的文件中,因为我希望能够在学校构建这个项目.我正在尝试使用bcp,但是尽管有以下说明,我还是不知道如何使用它: http://www.boost.org/doc/libs/1_52_0/tools/bcp/doc/html/index.html#bcp.syntax

I have the bcp tool, it came pre-built with the boost installer. I'd like to extract the dependencies I need from boost into a smaller file, since I'd like to be able to build this project at school. I'm trying to use bcp, but I don't understand how to use it, despite these instructions: http://www.boost.org/doc/libs/1_52_0/tools/bcp/doc/html/index.html#bcp.syntax

我已经尝试从命令提示符下输入:bcp boost/thread.hpp/"E:\ documents \ Dropbox \ School \ Comp 445 \ Comp445_Assign2_v2 \ boost2":在我的boost文件夹中:C:\ Program Files( x86)\ boost \ boost_1_51

I've tried typing: bcp boost/thread.hpp /"E:\documents\Dropbox\School\Comp 445\Comp445_Assign2_v2\boost2" from the command prompt, from within my boost folder: C:\Program Files (x86)\boost\boost_1_51

它只是弹出一个用法"指南:bcp {dbtable |查询} {在|出|查询|格式}数据文件

It just spits out a "usage" guide:bcp {dbtable | query} {in | out | queryout | format} datafile

我也尝试过:bcp timed_mutex/,bcp互斥锁/无济于事.

I've also tried: bcp timed_mutex /, bcp mutex / to no avail.

我觉得这很令人困惑;它看起来完全不像他们在boost文档中所说的那样,而且我不确定在任何情况下这意味着什么.我发现了很多建议人们使用bcp的线程,但是我很难找到任何人们在问如何使用它的地方.

I find this really confusing; it doesn't look at all like what they say in the boost documentation, and I'm not sure what a lot of this means in any case. I've found a lot of threads where people recommend bcp, but I've had a hard time finding any where people are asking how to use it.

推荐答案

正如@Rup在注释中指出的那样,可能的错误是您的系统上存在SQL Server的大容量复制程序.该程序也被命名为bcp.exe,并且很可能出现在您的PATH环境变量中. Boost bcp要么不存在于您的PATH中,要么在SQL bcp之前(Windows一旦找到匹配项,它将停止搜索其他程序).

As @Rup pointed out in the comments, the likely error is that you have SQL Server's Bulk Copy Program present on your system. That program is also named bcp.exe and is most likely present in your PATH environment variable. The Boost bcp is either not present in your PATH, or is preceded by the SQL bcp (Windows will stop searching for other programs as soon as it finds a match).

要调用Boost bcp,您应该

To call the Boost bcp you should either

  1. 将其重命名为其他名称(例如boost-bcp),然后 更新您的PATH变量 来反映这一点,并确保没有其他冲突的名称.然后使用"boost-bcp"调用--YOUR_OPTIONS.
  2. 以完整路径调用Boost bcp到其当前位置,例如"C:\ Boost \ bcp.exe" --YOUR_OPTIONS
  1. Rename it to something else (e.g. boost-bcp) and update your PATH variable to reflect that and make sure there are no other conflicting names. Then call with "boost-bcp" --YOUR_OPTIONS.
  2. Call the Boost bcp with the full path to its current location, e.g. "C:\Boost\bcp.exe" --YOUR_OPTIONS

这篇关于如何使用boost bcp?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-13 23:17