Re: resolving linker errors



<pauldepstein@xxxxxxx> wrote in message
news:08f88d7a-93b6-41c1-a846-5c46db359e81@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
The #include
"somefile.h" statements already tell the compiler to compile the
necessary h files. Therefore, what are the practical reasons (if any)
to add the included .h files to the solution so that they are visible
in solution explorer?

Purely convenience in locating and opening them. You can remove them
from the solution, and the project would still compile. In fact, your
project likely uses lots of .h files that are not listed in the Solution
Explorer - standard library headers, Windows headers, perhaps
third-party libraries.
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925


.



Relevant Pages

  • Re: making a project which doesnt build anything
    ... >> but they aren't source files, and they ... if I try to create it as a web project, I need to have a URL to ... >> see my files in solution explorer without visual studio trying to compile ...
    (microsoft.public.vsnet.ide)
  • Re: How can I build a cpp file not in a project?
    ... The quick fix for this is just create a new folder in your project's ... "solution explorer" called log4cpp and put all ... If the files aren't listed in your solution explorer they won't be compiled ... You can hope VC will compile them, but to be honest it doesn't ...
    (comp.lang.cpp)
  • making a project which doesnt build anything
    ... I'm using visual studio .net 2003. ... if I try to create it as a web project, I need to have a URL to ... see my files in solution explorer without visual studio trying to compile ...
    (microsoft.public.vsnet.ide)
  • Re: making a project which doesnt build anything
    ... In Solution Explorer, select the solution, right-click Add -> Add Existing ... if I try to create it as a web project, I need to have a URL to ... > see my files in solution explorer without visual studio trying to compile ...
    (microsoft.public.vsnet.ide)
  • Receiving an SMS message
    ... I followed the code example from the MSDN entitled "Receiving SMS Messages ... I managed to compile the mapirule.dll through eVC++. ... and I do have a link to it in the Solution Explorer. ...
    (microsoft.public.dotnet.framework.compactframework)

Loading