Reputation: 43
I am trying to compile a Visual Basic 6 project at the command line using the following command:
vb6.exe /make Project.vbp
I'm getting an error that states
"Unexpected error occurred in code generator or linker
What are the possible causes of this error?
if you want to read my past issue here's the link: VB6 compiling via console (vb.exe) compatibility issue on 64bit (works on 32bit?)
Really would appreciate all help, would even donate/pay for actual remote assistance not sure if that's allowed on stackoverflow though.
Upvotes: 2
Views: 2509
Reputation: 2536
This can happen if your .exp or .lib files are read only. From Q201565: PRB: Visual Basic Read-only .exp/.lib Files Cause Compile Error:
CAUSE
=====
The <project name>.exp and/or <project name>.lib files in the
project directory are read-only.
RESOLUTION
==========
Change the read-only attribute to read/write.
This can happen if you are compiling a project upgraded from VB5. From Q193089: PRB: Unexpected Error Occurs 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.
Upvotes: 3
Reputation: 15695
The /outdir
followed by an output directory must be specified.
Try something like:
vb6.exe /make Project.vbp /outdir c:\temp\VB6Out
Upvotes: 0