Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

error 'Ibsta" was not declared in this scope

Solved!
Go to solution

Sorry to hear you that you are continuing to have problems. The path that you pointed to for the GpibAz.lib is not the correct path nor the correct library, as your application needs to refer to ni4882.obj instead. By default the programming language interface files (.h and .obj files) are installed to:

 

Header files - C:\Program Files\National Instruments\Shared\ExternalCompilerSupport\C\Headers\

Object files - C:\Program Files\National Instruments\Shared\ExternalCompilerSupport\C\Lib32\

 

Whether you are using the traditional API or the newer API, you still need to point to the above mentioned directories in your project. So it doesn't make any difference about which API you use in that respect.

 

Hope this information helps you to successfully compile and link.

 

gpibtester

0 Kudos
Message 11 of 15
(1,871 Views)

still doesn't work.... 😞

cannot find -lni4882.obj

 

0 Kudos
Message 12 of 15
(1,870 Views)
Solution
Accepted by topic author wahidin

Well, I think it is not working as your project is not referring to the directories that I listed in the previous post:

 

Header files - C:\Program Files\National Instruments\Shared\ExternalCompilerSupport\C\Heade​rs\

Object files - C:\Program Files\National Instruments\Shared\ExternalCompilerSupport\C\Lib32​\

 

Try pointing your project to the directories that have to do with External Compiler Support.

 

gpibtester

0 Kudos
Message 13 of 15
(1,862 Views)

Oh!! Haha... Thanx a bunch!!

0 Kudos
Message 14 of 15
(1,854 Views)

That's great that you are finally able to compile and link! Thanks for the update!

 

gpibtester

0 Kudos
Message 15 of 15
(1,847 Views)