02-02-2006 04:50 AM
02-02-2006 06:59 AM
02-02-2006 09:04 AM
02-02-2006 09:32 AM
02-02-2006 09:56 AM
02-02-2006 10:30 AM
02-02-2006 11:08 AM
02-02-2006 11:08 AM
As far as the compiler is concerned, it will merge all the .h and .c files as directed by the #include statements into one mass of text and compile the lot in one go, which is why your code is working.
.h files commonly #include other .h files, but never .c files. CVI knows what .c files to compile from the definitions in the project window. Multiple .c files of a project (if you have more than 1) are all compiled individually (each with their own customised #include statements) and the resulting object files are all combined into a single executable. Sometimes it is necessary to prevent circular #include operations, where file1.h #includes file2.h which in turn #includes file1.h but we'll leave that for another time...
JR
02-02-2006 05:31 PM
02-02-2006 06:10 PM - edited 02-02-2006 06:10 PM
Message Edited by daijoubu on 02-02-2006 04:11 PM