Click to See Complete Forum and Search --> : COM / include_i.c


avsramesh
July 18th, 2002, 12:55 AM
Hi,
What is the difference between using "#include File_i.c" in the client program against with adding that file in project work space. If i do any way it is accepting and able to compile and link. Which is the best way. What is the difference between adding a file into a workspace and using "#include"

cup
July 18th, 2002, 03:10 AM
Dependency

If you #include a file but do not add it to the workspace, the dependencies are not generated. If the include file is modified, the module including it will not be rebuilt. Sometimes, it doesn't even save the include file because it is not part of the project.

I've been caught out by this one several times where I've included files from another project but not added them into the project.