Tim,
Thank you very much for your insight.
The results I am seeing is because all the code was in the same source file. This is for VC only.
If I split out the functions to another source file and #include them they are included in the exe.
Your link did not work for me but I did find the info for /Gy on msdn along with a link to:
https://msdn.microsoft.com/en-us/library/bxwfs976.aspxwhere it states that /OPT:REF is the default.
I also compiled all the functions using /Gy and linked the obj file to the main file. Only the F1 function that was called was included in the exe.
Now, why would one NOT use /Gy ? Are there any gotcha's with it??
Is this common knowledge among vc coders that I missed in my education?
James