LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Globe variable inizilization problem in the Labwindows development system

But then a static storage class top level variable isn't really a "global" - it's not exported to the linker, so other modules don't see it.

 

This is usually done with functions, but it applies to variables as well.  So don't declare a top level int as static  if you need it to be visible to other modules (as it will be if you don't declare it to be static).

 

C A Reference Manual by Harbison & Steele   ( "H&S" ) is a good reference - compiler writers know a language the best.  Plus, it covers C99 features that NI is adding to CVI native compiler.

 

Menchar

Message Edited by menchar on 04-14-2009 11:06 AM
Message Edited by menchar on 04-14-2009 11:06 AM
0 Kudos
Message 11 of 11
(1,067 Views)