# Error while compiling VB6 project

**URL:** https://www.finalbuilder.com/forums/t/error-while-compiling-vb6-project/1262
**Category:** Discussion
**Created:** [July 17, 2009, 6:59am UTC](https://www.finalbuilder.com/forums/t/error-while-compiling-vb6-project/1262 "2009-07-17T06:59:48Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [July 17, 2009, 6:59am UTC](https://www.finalbuilder.com/forums/t/error-while-compiling-vb6-project/1262/1 "2009-07-17T06:59:48Z")

</div>

&nbsp;Hi,

&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; I am trying to compile VB6 project using final builder. But it gives the following error

&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;-Unexpected error occurred in code generator or linker. &nbsp;

&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;-fatal error C1083: Cannot open compiler generated file: 'C:\Projects\VB-PDF-source\C:\Projects\VB-PDF- &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;source\Form1.OBJ': Invalid argument

&nbsp;

&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; When i compile the project using the VB6 IDE or using commnad line options all works fine. But it doesnt compile in finalbuilder. Am i mssing something?????

&nbsp;

Regards

Hiten Parmar

&nbsp;

&nbsp;

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [July 20, 2009, 3:25am UTC](https://www.finalbuilder.com/forums/t/error-while-compiling-vb6-project/1262/2 "2009-07-20T03:25:31Z")

</div>

&nbsp;As suggested in previous post i compared the fbtemp.vbp file with the actual project file and it seems fine.Following is the content of both the vbp file. I you could go through it, it would a big help.

------------------------------------------------------------------------------

Project 1.vbp

Type=Exe

Reference=\*\G{00020430-0000-0000-C000-000000000046}#2.0#0#..\..\Windows\system32\stdole2.tlb#OLE Automation

Form=Test.frm

Startup="Test"

HelpFile=""

Command32=""

Name="Project1"

HelpContextID="0"

CompatibleMode="0"

MajorVer=1

MinorVer=0

RevisionVer=0

AutoIncrementVer=0

ServerSupportFiles=0

CompilationType=0

OptimizationType=0

FavorPentiumPro(tm)=0

CodeViewDebugInfo=0

NoAliasing=0

BoundsCheck=0

OverflowCheck=0

FlPointCheck=0

FDIVCheck=0

UnroundedFP=0

StartMode=0

Unattended=0

Retained=0

ThreadPerObject=0

MaxNumberOfThreads=1

&nbsp;

--------------------------------------------------------------------------------------------

fbtemp.vbp

&nbsp;

Type=Exe

Reference=\*\G{00020430-0000-0000-C000-000000000046}#2.0#0#..\..\Windows\system32\stdole2.tlb#OLE Automation

Form=Test.frm

Startup="Test"

HelpFile=""

Command32=""

Name="Project1"

HelpContextID="0"

CompatibleMode="0"

MajorVer=1

MinorVer=0

RevisionVer=0

AutoIncrementVer=0

ServerSupportFiles=0

CompilationType=0

OptimizationType=0

FavorPentiumPro(tm)=0

CodeViewDebugInfo=0

NoAliasing=0

BoundsCheck=0

OverflowCheck=0

FlPointCheck=0

FDIVCheck=0

UnroundedFP=0

StartMode=0

Unattended=0

Retained=0

ThreadPerObject=0

MaxNumberOfThreads=1

Path32="C:\Projects\TestVB\C:\Projects\TestVB"

Title=""

ExeName32="Project1.exe"

Description=""

VersionComments=""

VersionCompanyName=""

VersionFileDescription=""

VersionLegalCopyright=""

VersionLegalTrademarks=""

VersionProductName=""

&nbsp;

Hiten Parmar

Computer Science Graduate Student&nbsp;

State University of New York

[002\_001\_TestVB.zip](https://www.finalbuilder.com/forums/uploads/default/original/2X/7/7d1e08e0e161a5bb83a2764e5b1d0a5e5daff1af.zip) (1.916 KB)[002\_001\_TestVB.zip](https://www.finalbuilder.com/forums/uploads/default/original/2X/7/7d1e08e0e161a5bb83a2764e5b1d0a5e5daff1af.zip) (1.916 KB)[002\_001\_TestVB.zip](https://www.finalbuilder.com/forums/uploads/default/original/2X/7/7d1e08e0e161a5bb83a2764e5b1d0a5e5daff1af.zip) (1.916 KB)
