Hi Andrej,
You should be able to get your programs to compile by simply defining errno in your app. If it is extern'd in libgpib.a, all that means is that "someone else will define this variable that I am going to use". If you dig through errno.h, you can see that it is really just a bunch of #defines and I do not believe it will change the problem you are currently facing.
Hope this helps out!
Best Regards,
Aaron K.
Application Engineer
National Instruments