Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

MFC compile error LNK2001 when compiler the MFC_example file

When I compiler the MFC_example(GPIB example) file in vc++ 6.0 .Found some error :
error LNK2001: unresolved external symbol _ibonl@8
error LNK2001: unresolved external symbol _ibcntl
error LNK2001: unresolved external symbol _ibrd@12

Can you tell me what's problem?
0 Kudos
Message 1 of 2
(3,434 Views)
Hi,

You need to include the gpib-32.obj in your project settings. The object file is where the API functions are actually implemented.

Go to Project >> Settings. Then select the Link tab to include the name of the object file on the "Object/library module" field. You might have to add the object file path on the "Additional Library path" field in the same Link tab under the Input category. Refer to the Visual C++ environment documentation.

Here is a previous discussion on this.

DiegoF
National Instruments.
0 Kudos
Message 2 of 2
(3,434 Views)