Skip to content

Commit 7d11b00

Browse files
authored
Merge pull request #5497 from MicrosoftDocs/main
3/12/2024 AM Publish
2 parents 7e7fc3e + 318a421 commit 7d11b00

File tree

2 files changed

+18
-24
lines changed

2 files changed

+18
-24
lines changed

docs/build/reference/pdbpath.md

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,43 +2,38 @@
22
description: "Learn more about: /PDBPATH"
33
title: "/PDBPATH"
44
ms.date: "11/04/2016"
5-
f1_keywords: ["/pdbpath"]
5+
f1_keywords: ["/PDBPATH"]
66
helpviewer_keywords: [".pdb files, path", "-PDBPATH dumpbin option", "/PDBPATH dumpbin option", "PDBPATH dumpbin option", "PDB files, path"]
7-
ms.assetid: ccf67dcd-0b23-4250-ad47-06c48acbe82b
87
---
9-
# /PDBPATH
8+
# `/PDBPATH`
109

1110
```
1211
/PDBPATH[:VERBOSE] filename
1312
```
1413

1514
### Parameters
1615

17-
*filename*<br/>
18-
The name of the .dll or .exe file for which you want to find the matching .pdb file.
16+
*filename*\
17+
The name of the .dll or `.exe` file for which you want to find the matching `.pdb` file.
1918

20-
**:VERBOSE**<br/>
21-
(Optional) Reports all directories where an attempt was made to locate the .pdb file.
19+
**`:VERBOSE`**\
20+
(Optional) Reports all directories where an attempt was made to locate the `.pdb` file.
2221

2322
## Remarks
2423

25-
/PDBPATH will search your computer along the same paths that the debugger would search for a .pdb file and will report which, if any, .pdb files correspond to the file specified in *filename*.
24+
`/PDBPATH` searches your computer along the same paths that the debugger searches for a `.pdb` file and reports which, if any, `.pdb` files correspond to the file specified in *filename*.
2625

27-
When using the Visual Studio debugger, you may experience a problem due to the fact that the debugger is using a .pdb file for a different version of the file you are debugging.
26+
When using the Visual Studio debugger, you may experience a problem because the debugger is using a `.pdb` file for a different version of the file you're debugging.
2827

29-
/PDBPATH will search for .pdb files along the following paths:
28+
`/PDBPATH` will search for `.pdb` files along the following paths:
3029

3130
- Check the location where the executable resides.
32-
3331
- Check the location of the PDB written into the executable. This is usually the location at the time the image was linked.
34-
3532
- Check along the search path configured in the Visual Studio IDE.
36-
37-
- Check along the paths in the _NT_SYMBOL_PATH and _NT_ALT_SYMBOL_PATH environment variables.
38-
33+
- Check along the paths in the `_NT_SYMBOL_PATH` and `_NT_ALT_SYMBOL_PATH` environment variables.
3934
- Check in the Windows directory.
4035

4136
## See also
4237

43-
[DUMPBIN Options](dumpbin-options.md)<br/>
44-
[/PDBALTPATH (Use Alternate PDB Path)](pdbaltpath-use-alternate-pdb-path.md)
38+
[`DUMPBIN` Options](dumpbin-options.md)\
39+
[`/PDBALTPATH` (Use Alternate PDB Path)](pdbaltpath-use-alternate-pdb-path.md)
Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
---
22
description: "Learn more about: Compiler Error C2751"
33
title: "Compiler Error C2751"
4-
ms.date: "11/04/2016"
4+
ms.date: "03/11/2024"
55
f1_keywords: ["C2751"]
66
helpviewer_keywords: ["C2751"]
7-
ms.assetid: 44a3abdf-8a87-4a09-b34b-532c220c310a
87
---
98
# Compiler Error C2751
109

@@ -16,11 +15,11 @@ The following sample generates C2751:
1615

1716
```cpp
1817
// C2751.cpp
19-
namespace std {
20-
template<typename T>
21-
class list {};
18+
// compile with: /c
19+
namespace NS
20+
{
21+
class C {};
2222
}
2323

24-
#define list std::list
25-
void f(int &list){} // C2751
24+
void func(int NS::C) {} // C2751
2625
```

0 commit comments

Comments
 (0)