Include declarations and related definition

From: Kostas (skatoulas_at_hotmail.com)
Date: 11/29/03


Date: 29 Nov 2003 13:02:20 -0800

Hello, I just need to get something straight in my mind. In
microsoft's VC compiler, whenever I include an .h file it should go
into my stdafx.h file. Then every cpp file needs to include the
stdafx.h file so I don't get the precompiled header directive
something message. What happens to the cpp file with definitions of
whatever is declared in the h file. Do I just add it to the project?
Maybe I'm saying it all wrong? Cheers

Kostas



Relevant Pages

  • Re: Include declarations and related definition
    ... I just need to get something straight in my mind. ... > microsoft's VC compiler, whenever I include an .h file it should go ... Then every cpp file needs to include the ... The whole stdafx magic is Microsoft propriatery extension (and I start ...
    (comp.lang.cpp)
  • Re: Include declarations and related definition
    ... I just need to get something straight in my mind. ... > stdafx.h file so I don't get the precompiled header directive ... You could ask more on those compiler ...
    (comp.lang.cpp)
  • Re: Internal Complier Error in Visual C++ 1.52
    ... You're using a very old version of both the IDE and the compiler. ... > function declaration for an existing class in a header file and function ... > implementation in the .cpp file i am getting an error as given below ...
    (microsoft.public.dotnet.languages.vc)
  • Re: Preprocessor, nested files etc.
    ... > we have to do this, it takes around 2 hours for a complete recompile). ... > When the compiler compiles a *.cpp file, it starts in a fresh state. ... > it has learned by compiling a previous source code file remains. ...
    (comp.lang.cpp)
  • Re: including a large constants file
    ... "john smith" wrote in message ... > If I have a large constants file and include that in a .cpp file will the ... That depends entirely upon your compiler and platform. ... None of what you ask is addressed by the language, ...
    (comp.lang.cpp)