PRB: Unexpected Error Occurs in Code Generator or Linker
ID: Q193089
|
The information in this article applies to:
-
Microsoft Visual Basic Learning, Professional, and Enterprise Editions for Windows, version 6.0
SYMPTOMS
When compiling an upgraded Visual Basic 5.0 project in Visual Basic 6.0,
you may received the following error message:
"Unexpected Error Occurred in Code Generator or Linker."
CAUSE
This is caused by the existence of a project.pdb (symbol) file in the
directory into which you are compiling the project.
RESOLUTION
There are two possible resolutions to this issue:
- Delete the existing .pdb file.
-or-
- Compile the project (exe or dll) into a different directory.
MORE INFORMATION
Steps to Reproduce Behavior
Create and compile a Visual Basic 5.0 project:
- Create a Standard EXE project in Visual Basic 5.0. Form1 is created by
default.
- Select Project Properties from the Project menu.
- Select the Compile tab.
- Select Compile to Native Code and check Create Symbolic Debug Info.
- Save and compile the project.
Upgrade and compile in Visual Basic 6.0:
- Open the Visual Basic 5.0 project with Visual Basic 6.0.
- Compile the project and note that you receive the following error
message:
Unexpected Error Occurred in Code Generator or Linker.
Additional query words:
kbdss kbDSupport kbVBp kbVBp600 kbCompiler kbVBp500
Keywords : kbGrpVB
Version : WINDOWS:6.0
Platform : WINDOWS
Issue type : kbprb