LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with cvistart.lib from CVI 5.5

I downloaded some instrument drivers from the NI website. To control a Kepco Power Supply an a Keithley Voltmeter. When Debugging both drivers return:
1 Project link error
Undefine symbol '_main' referenced in
"c:\measurementstudio\cvi\bin\cvistart.lib"
0 Kudos
Message 1 of 3
(3,113 Views)
You might want to check that you are set to the same compiler as the project you downloaded (MS / Watcom etc etc)...
0 Kudos
Message 2 of 3
(3,113 Views)
This means you didn't write a main function for your exe. The cvistart.lib is checking your code for a main function and you didn't provide one. You can't just build an instrument driver into a EXE. It is just a library of functions. You have to write an application to USE the instrument driver.

In ANSI C, you must have a main function for your application to know what to run when the EXE starts. See any of the examples in cvi\samples\ to see main function examples.

Best Regards,

Chris Matthews
Measurement Studio Support Manager
Message 3 of 3
(3,113 Views)