![](https://secure.gravatar.com/avatar/5243970803cb1967bdf6ea217d3ab211.jpg?s=120&d=mm&r=g)
25 Jun
2013
25 Jun
'13
8:22 a.m.
Hello Mirko, On Tue, Jun 25, 2013 at 1:56 AM, Mirko Vukovic <mirko.vukovic@gmail.com> wrote:
I am trying to link to a VISA library (VISA is used to control data acquisition instruments), visa32.lib compiled for Windows. The library is shipped with Tektronix software.
I'm surprised loading it works. That sounds like a static library.
Using `nm' I did find: 00000000 I __imp__viOpenDefaultRM@4 00000000 T _viOpenDefaultRM@4
This looks like the stdcall calling convention. (See "Name-decoration convention" in <http://msdn.microsoft.com/en-us/library/zxk0tw93(v=vs.71).aspx>.) Passing ":convention :stdcall" to DEFCFUN should work. Cheers, -- Luís Oliveira http://kerno.org/~luis/