Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA file link error __stdcall

Dear Support person,

 

      I am using GPIB to control the power supply. I am using Visual Studio 2008   9.0 .When I compiled my code, I am getting 4 Link errors stating : unresolved external symbol _viread  in _wmain function, _viwrite in _wmain etc . When I traced back- viread defined to __stdcall. When I tried to trace back __stdcall, Vstudio popped up a message stating- __stdcall is undefined. Please help. OS I am using is Windows 7, 32 bit.

0 Kudos
Message 1 of 5
(3,444 Views)

Have you actually added a reference to VISA in your project? Installation of VISA should install sample code. Have you taken a look at these?

0 Kudos
Message 2 of 5
(3,442 Views)

Reference in the sense : i have included visa.h file in my project

0 Kudos
Message 3 of 5
(3,439 Views)

You have to include the actual library for the linker. The .h file is for the compiler. Have you tried to recompile the examples?

0 Kudos
Message 4 of 5
(3,427 Views)

Now I included the lib file also. It is working !! Thank you 🙂

0 Kudos
Message 5 of 5
(3,425 Views)