Driver Development Kit (DDK)

cancel
Showing results for 
Search instead for 
Did you mean: 

register level programming with ChipObjects

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
(7,344 Views)
What operating system are you using? Windows? Unix? For many of these operating systems there are ready-made drivers and you should not need to use the ChipObjects.

Based on your description most likely you are missing the VISA library (visa32.lib) in your project. On Windows this is normally located in the C:\VXIPNP\WinNT\lib\msc directory.

If you are using the ChipObjects on an OS that doesn't support PCI cards through VISA, you need to update osiUserCode.cpp to interface to the regosters of the board using non-VISA functions.
authored by
Christian L, CLA
Systems Engineering Manager - Automotive and Transportation
NI - Austin, TX


  
0 Kudos
Message 2 of 2
(7,341 Views)