Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

ChipObject and VC++

i have a problem in compiling an RLP example program
/* ChipObject and DIO 96 example program */
and i think its a linker error...

do i need dll or something to work this out

or files in my project are incorrect?



Files included in my VC++ project:

digex2.cpp // Digital Example 2, RLP example for DIo 96 board
osiBus.cpp
osiUserCode.cpp
tDIO96.cpp

// no header files included in my project all other files are in the project directory
// such as:

// osiBus.h
// osiTypes.h
// tDIO96.h
// t8255.h

// /nimdbg/trace.h /* i think this is for trace object*/
// /nimdbg/tStatus2.h


other external dependencies like visa.h
i have set the INCLUDE DIRECTORY:
C:\PROGRAM FILES\NATIONAL INSTRUMENTS\CVI70\INCLUDE


error i get from Visual C++ 6.0

--------------------Configuration: CO_Project - Win32 Debug--------------------
Linking...
digex2.obj : error LNK2001: unresolved external symbol "public: __thiscall t8255::t8255(class tAddressSpace,class nMDBG::tStatus2 *)" (??0t8255@@QAE@VtAddressSpace@@PAVtStatus2@nMDBG@@@Z)
osiUserCode.obj : error LNK2001: unresolved external symbol _viMapAddress@28
osiUserCode.obj : error LNK2001: unresolved external symbol _viFindNext@8
osiUserCode.obj : error LNK2001: unresolved external symbol _viClose@4
osiUserCode.obj : error LNK2001: unresolved external symbol _viGetAttribute@12
osiUserCode.obj : error LNK2001: unresolved external symbol _viOpen@20
osiUserCode.obj : error LNK2001: unresolved external symbol _viFindRsrc@20
osiUserCode.obj : error LNK2001: unresolved external symbol _viOpenDefaultRM@4
osiUserCode.obj : error LNK2001: unresolved external symbol _viUnmapAddress@4
Debug/CO_Project.exe : fatal error LNK1120: 9 unresolved externals
Error executing link.exe.

CO_Project.exe - 10 error(s), 0 warning(s)
a journey of a thousand miles is started by taking the first step.
- chinese proverb
0 Kudos
Message 1 of 2
(3,217 Views)
You will need to add the visa32.lib to your VC++ project to resolve those errors. If you have VISA installed, you can find it under C:\VXIpnp\WinNT\lib\msc
Bilal Durrani
NI
0 Kudos
Message 2 of 2
(3,214 Views)