Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

ni488.h LNK2019 error Visual c++

Hello,

I am new to Visual C++. I developed a small program using NIDAQmx which works fine. I then tried to add ni488.h and I get the following error message: "VC_Acq_IntClk error LNK2019: unresolved external symbol _ibfind referenced in function _wmain"

#include <stdio.h>
#include <NIDAQmx.h>  
#include <windows.h> 
#include <ni488.h>

I suspect it is the environment setup of Visual C. 

Help,
Jeff

0 Kudos
Message 1 of 3
(4,779 Views)
Hi,

maybe you have to set a library path in your project's settings and specify whick library to use with your header file.

I there are only sources available, you have to get them compiling on VC++ or maybe creating a dll or lib in CVI first.

As I understand, I think you have to specifiy to use the gpib.lib file and maybe gpib.h file




Message Edité par NI_Device_user_sb le 06-18-2008 05:20 AM

Message Edité par NI_Device_user_sb le 06-18-2008 05:21 AM
0 Kudos
Message 2 of 3
(4,768 Views)
The problem was solved with the help of a colleague.
In the Visual C IDE (Microsoft developement environment), under the "Project" menu - "properties" - "linker" - "Command line", I added "...\GPIB.obj" to the additional options textbox.  This provides the missing link to the object file. I think this should be spelled out in the readme.txt files that accompany the Microsoft C examples.
0 Kudos
Message 3 of 3
(4,747 Views)