LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Generate Prototypes ?

What is the purpose of the generate Prototypes function (CVI 6.0)?
Why every function is classfied extern ?

thanks David
0 Kudos
Message 1 of 4
(3,169 Views)
It automatically creates a header file that you can use in other modules (C files) to refer to functions and globals that are declared in this C file. So if you want to call the function in the current C file from another C file, you would need a header file to include in the other C file. This function creates it for you.

Best Regards,

Chris Matthews
National Instruments
0 Kudos
Message 2 of 4
(3,169 Views)
Thank you Chris,
But usually the function that I declare in header file are not classfied extern... why does "generate prototyp" this ?

thanks David
0 Kudos
Message 3 of 4
(3,169 Views)
The extern keyword means that the definition of this function is external to this module (C file). The compiler can usually resolve functions without the extern keyword, but it is more correct to use extern when you are referencing any externally defined function.

Chris
0 Kudos
Message 4 of 4
(3,169 Views)