Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Why do I get an unresolved external "ibwrt", "ibclr", etc when using DECL-32.h in my Visual C++ project?

I am trying to use the DECL-32.h sample file located in the National Intruments\Ni488.2\Languages\Microsoft C\ and I always get an unresolved link error for all of the GPIB function calls. They include:

ibdev
ibclr
ibwrt
ibrd
_ibcntrl
_iberr
_ibsta
ibonl

Is there some sort of library that I'm missing in my project? I ran the Power Supply Simple program and it gave me the same errors. I even tried the Borland C version on a Borland 5.0 compiler and it also gave the same errors?

What do I need to do?
0 Kudos
Message 1 of 2
(3,712 Views)
You must add Gpib-32.obj file to your project.
The most easy way is click right mouse button on the project and select "Add files to project..." item in menu. Select file gpib-32.obj located in National Intruments\Ni488.2\Languages\Microsoft C\ directory and build your project again.
0 Kudos
Message 2 of 2
(3,712 Views)