cpubbs 发表于 2004-12-3 02:57:20

求助,关于CIN节点问题 +9.1 [精华] [转]

<P>问:关于CIN节点的问题,我按部就班的把DLL工程的设置都设置好了,
          c:\Program Files\National Instruments\LabVIEW 6\cintools\lvsbutil $(TargetName) -d "$(WkspDir)\$(OutDir)"
加上了遗漏的空格,也能顺利的编译。可是还是无法生成.lsb文件,在最后生成可执行文件时,也就是Build 工程名.dll时,会出现如下错误:(我的工程名是add)

--------------------Configuration: add - Win32 Debug--------------------
Performing Custom Build Step on .\Debug\add.dll
Bad command or file name

add.dll - 0 error, 0 warning

还有在custom build 标签页的设置中的输入命令行是写:
$(OutDir)$(TargetName)还是按论坛精华区里所写是
(OutDir)$$(TargetName)
各位帮忙了!!!先谢谢大家了!!</P>
<P>答:Add CIN objects and libraries to the project. Select Project&raquo;Add To
Project&raquo;Files and select cin.obj, labview.lib, lvsb.lib, and
lvsbmain.def from the Cintools\Win32 subdirectory. You need
these files to build a CIN.

你确信已经将cin.obj, labview.lib, lvsb.lib, and
lvsbmain.def 加进你的工程了么?
另外,你可以将cintools到d:\根目录下
</P>
<P>答:我的程序编译时没有错误
但在 BUILD NAME.DLL时会出现下列错误。怎么回事???/
Linking...
LINK : LNK4073: cannot create map for .ILK file; linking nonincrementally
   Creating library Debug/area.lib and object Debug/area.exp
Performing Custom Build Step on .\Debug\area.dll
Error executing c:\winnt\system32\cmd.exe.

area.dll - 1 error, 0 warning</P>
<P>答:终于试出来了:
COMMEND:
c:\cintools\lvsbutil $(TargetName) -d "$(WkspDir)\$(OutDir)"
OUTPUT:
$(OutDir)$(TargetName).lsb

答:可以这样输入试试 “c:\Program Files\National Instruments\LabVIEW 6\cintools\lvsbutil” $(TargetName) -d "$(WkspDir)\$(OutDir)"
注意:-d前为两个空格

答:其实只是一个命令行执行的问题,可以直接从命令行来执行!
我是这样做的:
首先在系统环境变量里加入lvsbutil的路径(这样就可以在任何地方执行了,不是必须的),然后到编译成的.DLL文件的目录,直接运行 lvsbutil *(*代表文件名,不含DLL扩展名),就在当前目录下创建*.lsb文件。


</P>
页: [1]
查看完整版本: 求助,关于CIN节点问题 +9.1 [精华] [转]