LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

project link error

Hello

 

I have a LabWindows CVI program that I am working on that gives me a "Project Link Error: Undefined symbol "_read_data" in file xyz. The read_data variable is defined as an extern variable in that file, and is defined as a static unsigned variable in another file in the same project.

 

I have another similar project (files are mostly the same, and the above "xyz" file is exactly the same) which does not give me the linking error.

 

How do I find out what the linking error actually is. Any help will be appreciated.


Thanks

Ajit 

0 Kudos
Message 1 of 2
(4,380 Views)

Hi,

 

if the read_data variable is a global in your file, you can't use extern read_data because the variable is limited to the file where it is defined.

 

Check your second project if this variable is set to static or not. 

0 Kudos
Message 2 of 2
(4,377 Views)