Hi Raphael,
I'm not sure why (might be some odd rule with the compiler or linker), but if you go to the top of your lin.c file, you should see the workaround added by David for CVI. There should be a #define __int64 int and #include "cvidef.h". If you move the #define to go after all of the includes, (i.e., insert after line '#include "lin.h"') it will link fine and work. I'm curious as to why this is the reason for the bad link error.
Jeremy L.
National Instruments
Jeremy L.
National Instruments