LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

include ".c" file

In a CVI project i have a .c file that grows too large.  I want to be able to break this file into parts (for example main.c, timer.c, callbacks.c, etc etc.).  What is the easiest way of doing this.  If I create a new file and put some functions in that file and then add an
#include main.c line I get a bunch of "multiply defined symbol" errors for much of the variable declarations.  But I need to include these variables somehow because I need them in both files.  In one file it declares & uses the variable in the other file it uses it.  I realize the #include statement is intended for .h files but the way I think of it including should be the same thing as appending.  What does this error mean?  And what is the best way to break up a large file in the labwindows project?  thanks.
0 Kudos
Message 1 of 2
(6,828 Views)
0 Kudos
Message 2 of 2
(6,813 Views)