错误MSB3073::VCEnd“退出代码2

问题描述:

我知道这个问题已发布,我搜索互联网寻找我的问题的解决方案。我是编程新手,我试图找到答案,然后发布我的问题。 我试图做的Labview代码接口节点。按照课程搜索在互联网上的方向和我安装我的环境变量来点我的文件在我设置属性页,是我遇到的麻烦在自定义生成的命令行设置我输入以下命令:错误MSB3073::VCEnd“退出代码2

"$(CINTOOLSDIR)\lvsbutil" "$(TargetName)" -d "$(OutDir)"

和输出我输入

$(OutDir) $(TargetName).lsb. 

` 当我构建代码时,我得到以下内容。

' 
    Project: SimpleCIN2010, Configuration: Release Win32 ------ 
    1>C:\Program Files(x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(298,5): warning  MSB8004: Intermediate Directory does not end with a trailing slash. This build instance will add the slash as it is required to allow proper evaluation of the Intermediate Directory. 
    1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(299,5): warning MSB8004: Output Directory does not end with a trailing slash. This build instance will add the slash as it is required to allow proper evaluation of the Output Directory. 

    1> SimpleCIN2010.cpp 
    1> Microsoft (R) Incremental Linker Version 10.00.40219.01 
    1> Copyright (C) Microsoft Corporation. All rights reserved. 
    1> 
    1> "/OUT:.\Release\SimpleCIN2010.dll" /INCREMENTAL "/LIBPATH:C:\Program Files (x86)\National Instruments\LabVIEW 8.6\cintools" cin.obj labview.lib lvsb.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib "/DEF:C:\Program Files (x86)\National Instruments\LabVIEW 8.6\cintools\lvsbmain.def" /MANIFEST "/ManifestFile:.\Release\SimpleCIN2010.dll.intermediate.manifest" "/MANIFESTUAC:level='asInvoker' uiAccess='false'" /DEBUG "/PDB:C:\Users\XXX\Documents\Visual Studio 2010\Projects\CIN VC2010\SimpleCIN2010\SimpleCIN2010\Release\SimpleCIN2010.pdb" /SUBSYSTEM:WINDOWS /OPT:REF /OPT:ICF /TLBID:1 /DYNAMICBASE /NXCOMPAT "/IMPLIB:.\Release\SimpleCIN2010.lib" /MACHINE:X86 /DLL .\Release\SimpleCIN2010.dll.embed.manifest.res 
    1> .\Release\SimpleCIN2010.obj 
    1>LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/OPT:ICF' specification 
    1>SimpleCIN2010.obj : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/OPT:ICF' specification 
    1>  Creating library .\Release\SimpleCIN2010.lib and object .\Release\SimpleCIN2010.exp 
    1> Microsoft (R) Incremental Linker Version 10.00.40219.01 
    1> Copyright (C) Microsoft Corporation. All rights reserved. 
    1> 
    1> "/OUT:.\Release\SimpleCIN2010.dll" /INCREMENTAL "/LIBPATH:C:\Program Files (x86)\National Instruments\LabVIEW 8.6\cintools" cin.obj labview.lib lvsb.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib "/DEF:C:\Program Files (x86)\National Instruments\LabVIEW 8.6\cintools\lvsbmain.def" /MANIFEST "/ManifestFile:.\Release\SimpleCIN2010.dll.intermediate.manifest" "/MANIFESTUAC:level='asInvoker' uiAccess='false'" /DEBUG "/PDB:C:\Users\XXX\Documents\Visual Studio 2010\Projects\CIN VC2010\SimpleCIN2010\SimpleCIN2010\Release\SimpleCIN2010.pdb" /SUBSYSTEM:WINDOWS /OPT:REF /OPT:ICF /TLBID:1 /DYNAMICBASE /NXCOMPAT "/IMPLIB:.\Release\SimpleCIN2010.lib" /MACHINE:X86 /DLL .\Release\SimpleCIN2010.dll.embed.manifest.res 
    1> .\Release\SimpleCIN2010.obj 
    1>LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/OPT:ICF' specification 
    1>SimpleCIN2010.obj : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/OPT:ICF' specification 
    1>  Creating library .\Release\SimpleCIN2010.lib and object .\Release\SimpleCIN2010.exp 
    1> SimpleCIN2010.vcxproj -> C:\Users\XXXX\Documents\Visual Studio 2010\Projects\CIN VC2010\SimpleCIN2010\SimpleCIN2010\.\Release\SimpleCIN2010.dll 
    1> C:\Program Files (x86)\National Instruments\LabVIEW 8.6\cintools\lvsbutil: error building resource file: 1 
    1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(183,5): error MSB3073: The command ""C:\Program Files (x86)\National Instruments\LabVIEW 8.6\cintools\lvsbutil" "SimpleCIN2010" -d ".\Release\" 
    1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(183,5): error MSB3073: :VCEnd" exited with code 2. 
     ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========` 

我进入命令行来检查双倍间距或不够。我读了已发布的其他文章并尝试了一些代码。所以如果有人能告诉我,如果我设置了命令权,请让我知道。 感谢

+0

我终于找到了,这个问题是试图使用两个不同版本的软件。过了一个星期,许多个小时在互联网上寻找答案后,我读到一篇文章,来了如何使LSB文件。首先,我必须从属性管理器中删除自定义构建命令和输出。重建程序以在我的项目下创建我的发布文件夹。一旦完成,我按照以下步骤进行: – Dorato

+0

是否有一个非常好的理由让你创建一个CIN,而不仅仅是使用LabVIEW的DLL? – nekomatic

我终于找到了,这个问题是试图使用两个不同版本的软件。过了一个星期,许多个小时在互联网上寻找答案后,我读到一篇文章,来了如何使LSB文件。首先,我必须从属性管理器中删除自定义构建命令和输出。重建程序以在我的项目下创建我的发布文件夹。

1. Go to the start button and click run. Then type cmd in the command window and hit enter. 
:一旦这样做是我遵循以下步骤:通过以下步骤

执行CMD.EXE当VC++

编译CIN可以降低引进打字错误和错误引用

  1. 浏览到lvsbutil.exe目录(在LabVIEW下的cintools目录下),将lvsbutil.exe拖到cmd窗口。这将正确引用可执行文件。
  2. 浏览到保存你的dll的文件夹,这通常在你的项目目录的/ Debug中,确认在那里创建了一个dll。
  3. 在cmd窗口中,键入以下命令:project_name -d
  4. 将包含dll的文件夹拖到cmd窗口上,然后按enter键。 您应该看到的LabVIEW资源文件与正确创建以下属性: 类型:CIN 名称:sharedcin.lsb

的.lsb文件将被建在同一目录下的DLL。

注:必须是VC++代码被编译在计算机上安装的LabVIEW。只需将cintools目录复制到将在未安装LabVIEW的情况下编译代码的计算机,将会在链接时导致错误。