Skip to content

Use <iostream> instead of <iostream.h> in Example Code for PCH #1546

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 25, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions docs/build/creating-precompiled-header-files.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Precompiled Header Files"
ms.date: "08/19/2019"
ms.date: "10/24/2019"
helpviewer_keywords: ["precompiled header files, creating", "PCH files, creating", "cl.exe compiler, precompiling code", ".pch files, creating"]
ms.assetid: e2cdb404-a517-4189-9771-c869c660cb1b
---
Expand Down Expand Up @@ -169,9 +169,9 @@ UNSTABLEHDRS = unstable.h
CLFLAGS = /c /W3
# List all linker options common to both debug and final
# versions of your code here:
LINKFLAGS = /NOD /ONERROR:NOEXE
LINKFLAGS = /nologo
!IF "$(DEBUG)" == "1"
CLFLAGS = /D_DEBUG $(CLFLAGS) /Od /Zi /f
CLFLAGS = /D_DEBUG $(CLFLAGS) /Od /Zi
LINKFLAGS = $(LINKFLAGS) /COD
LIBS = slibce
!ELSE
Expand Down Expand Up @@ -247,7 +247,7 @@ void savetime( void );
//
#ifndef __UNSTABLE_H
#define __UNSTABLE_H
#include<iostream.h>
#include<iostream>
void notstable( void );
#endif // __UNSTABLE_H
```
Expand All @@ -260,6 +260,7 @@ void notstable( void );
#include"another.h"
#include"stable.h"
#include"unstable.h"
using namespace std;
// The following code represents code that is deemed stable and
// not likely to change. The associated interface code is
// precompiled. In this example, the header files STABLE.H and
Expand Down