Mega Search
23.2 Million


Sign Up

Make a donation  
file not found on compile  
News Group: embarcadero.public.delphi.install

Hello

I am upgrading from Delphi 2009 to XE7. I am getting this compiler message:

[dcc32 Fatal Error] Winapi.ActiveX.pas(7803): F1026 File not found: 'System.Variants'

My search path is:

$(BDS)\lib\win32\debug;
$(Delphi)\lib\win32\debug;
\4WinNu;
\Prog2\Filer51_XE7;
\Prog2\Filer51_XE7/Units;
C:\Program Files (x86)\Embarcadero\Studio\15.0\source\vcl;
C:\Program Files (x86)\Embarcadero\Studio\15.0\source\data;
C:\Program Files (x86)\Embarcadero\Studio\15.0\source\rtl\common;
C:\Program Files (x86)\Embarcadero\Studio\15.0\source\rtl\sys;
C:\Program Files (x86)\Embarcadero\Studio\15.0\source\rtl\win;
C:\Program Files (x86)\Embarcadero\Studio\15.0\source\Indy10\Core;
C:\Program Files (x86)\Embarcadero\Studio\15.0\source\Indy10\Protocols;
C:\Program Files (x86)\Embarcadero\Studio\15.0\source\Indy10\System;
c:\prog2\scalabium_xe7\export\sources;
c:\prog2\scalabium_xe7\import\sources

System.Variants.pas (Nov 6) is in rtl\sys. What am I doing wrong?

Thanks
Tom Obenschain

Vote for best question.
Score: 0  # Vote:  0
Date Posted: 24-Dec-2014, at 8:30 AM EST
From: Tom Obenschain
 
Re: file not found on compile  
News Group: embarcadero.public.delphi.install
> {quote:title=Jeff Overcash (TeamB) wrote:}{quote}
> Tom Obenschain wrote:
> > 
> > I have reverted to original VCL's with the exception of DBCtrls which has two minor changes for use with BTree Filer 3GL ISAM routines. I thought if I left the interface unchanged then it would compile. But I am getting "Unit Vcl.DBGrids was compiled with a different version of Vcl.DBCtrls.TDBLookUpListBox". So I have to include the Source\Data directories in my search path.
> 
> You have a dcu in your path somewhere that is still interface breaking.  It is 
> either that file's or a unit that one uses.  You have to find it (them) and 
> remove them.
> 
> -- 
> Jeff Overcash (TeamB)
>        (Please do not email me directly unless  asked. Thank You)
> And so I patrol in the valley of the shadow of the tricolor
> I must fear evil. For I am but mortal and mortals can only die.
> Asking questions, pleading answers from the nameless
> faceless watchers that stalk the carpeted  corridors of Whitehall.
>               (Fish)

Thanks for your help.

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 2-Jan-2015, at 6:42 AM EST
From: Tom Obenschain
 
Re: file not found on compile  
News Group: embarcadero.public.delphi.install
> {quote:title=Jeff Overcash (TeamB) wrote:}{quote}
> Tom Obenschain wrote:
> > 
> > I have reverted to original VCL's with the exception of DBCtrls which has two minor changes for use with BTree Filer 3GL ISAM routines. I thought if I left the interface unchanged then it would compile. But I am getting "Unit Vcl.DBGrids was compiled with a different version of Vcl.DBCtrls.TDBLookUpListBox". So I have to include the Source\Data directories in my search path.
> 
> You have a dcu in your path somewhere that is still interface breaking.  It is 
> either that file's or a unit that one uses.  You have to find it (them) and 
> remove them.
> 
> -- 
> Jeff Overcash (TeamB)
>        (Please do not email me directly unless  asked. Thank You)
> And so I patrol in the valley of the shadow of the tricolor
> I must fear evil. For I am but mortal and mortals can only die.
> Asking questions, pleading answers from the nameless
> faceless watchers that stalk the carpeted  corridors of Whitehall.
>               (Fish)

<>

Yet it compiles ok if the modified unit is removed from the search path.

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 1-Jan-2015, at 5:23 PM EST
From: Tom Obenschain
 
Re: file not found on compile  
News Group: embarcadero.public.delphi.install
Tom Obenschain wrote:
> 
> I have reverted to original VCL's with the exception of DBCtrls which has two minor changes for use with BTree Filer 3GL ISAM routines. I thought if I left the interface unchanged then it would compile. But I am getting "Unit Vcl.DBGrids was compiled with a different version of Vcl.DBCtrls.TDBLookUpListBox". So I have to include the Source\Data directories in my search path.

You have a dcu in your path somewhere that is still interface breaking.  It is 
either that file's or a unit that one uses.  You have to find it (them) and 
remove them.

-- 
Jeff Overcash (TeamB)
       (Please do not email me directly unless  asked. Thank You)
And so I patrol in the valley of the shadow of the tricolor
I must fear evil. For I am but mortal and mortals can only die.
Asking questions, pleading answers from the nameless
faceless watchers that stalk the carpeted  corridors of Whitehall.
              (Fish)

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 1-Jan-2015, at 1:30 PM EST
From: Jeff Overcash (TeamB)
 
Re: file not found on compile  
News Group: embarcadero.public.delphi.install
> {quote:title=Jeff Overcash (TeamB) wrote:}{quote}
> Tom Obenschain wrote:
> > Hello
> > 
> > I am upgrading from Delphi 2009 to XE7. I am getting this compiler message:
> > 
> > [dcc32 Fatal Error] Winapi.ActiveX.pas(7803): F1026 File not found: 'System.Variants'
> > 
> > My search path is:
> > 
> > $(BDS)\lib\win32\debug;
> > $(Delphi)\lib\win32\debug;
> > \4WinNu;
> > \Prog2\Filer51_XE7;
> > \Prog2\Filer51_XE7/Units;
> > C:\Program Files (x86)\Embarcadero\Studio\15.0\source\vcl;
> > C:\Program Files (x86)\Embarcadero\Studio\15.0\source\data;
> > C:\Program Files (x86)\Embarcadero\Studio\15.0\source\rtl\common;
> > C:\Program Files (x86)\Embarcadero\Studio\15.0\source\rtl\sys;
> > C:\Program Files (x86)\Embarcadero\Studio\15.0\source\rtl\win;
> > C:\Program Files (x86)\Embarcadero\Studio\15.0\source\Indy10\Core;
> > C:\Program Files (x86)\Embarcadero\Studio\15.0\source\Indy10\Protocols;
> > C:\Program Files (x86)\Embarcadero\Studio\15.0\source\Indy10\System;
> > c:\prog2\scalabium_xe7\export\sources;
> > c:\prog2\scalabium_xe7\import\sources
> > 
> > System.Variants.pas (Nov 6) is in rtl\sys. What am I doing wrong?
> > 
> > Thanks
> > Tom Obenschain
> 
> Do not add source directories to your search path or library path.  All the 
> DCU's are there in your lib directories.  If you are modifying VCL source, copy 
> the source to its own directory and add that source file directly to the project.
> 
> -- 
> Jeff Overcash (TeamB)
>        (Please do not email me directly unless  asked. Thank You)
> And so I patrol in the valley of the shadow of the tricolor
> I must fear evil. For I am but mortal and mortals can only die.
> Asking questions, pleading answers from the nameless
> faceless watchers that stalk the carpeted  corridors of Whitehall.
>               (Fish)

I have reverted to original VCL's with the exception of DBCtrls which has two minor changes for use with BTree Filer 3GL ISAM routines. I thought if I left the interface unchanged then it would compile. But I am getting "Unit Vcl.DBGrids was compiled with a different version of Vcl.DBCtrls.TDBLookUpListBox". So I have to include the Source\Data directories in my search path.

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 1-Jan-2015, at 12:14 PM EST
From: Tom Obenschain
 
Re: file not found on compile  
News Group: embarcadero.public.delphi.install
Tom,

| I modified Classes.pas

That seems like it should be a a no-no!  

It may have fixed the issue instance but it's probably NOT the correct
solution.


-- 

   Q 

1.19.1.372  (Q's Broken Toolbar.)

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 24-Dec-2014, at 3:58 PM EST
From: Quentin Correll
 
Re: file not found on compile  
News Group: embarcadero.public.delphi.install
> {quote:title=Tom Obenschain wrote:}{quote}
> 
> I modified Classes.pas which requires a recompile of many units.
> 
> I tried moving them to my own directory but got another "file not found".

Real problem is why you needed to modify Classes.pas .... there are normally better ways

--
Linden
"Mango" was Cool but "Wasabi" was Hotter but remember it's all in the "source"

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 24-Dec-2014, at 2:38 PM EST
From: Linden ROTH
 
Re: file not found on compile  
News Group: embarcadero.public.delphi.install
> {quote:title=Jeff Overcash (TeamB) wrote:}{quote}
> Tom Obenschain wrote:
> > Hello
> > 
> > I am upgrading from Delphi 2009 to XE7. I am getting this compiler message:
> > 
> > [dcc32 Fatal Error] Winapi.ActiveX.pas(7803): F1026 File not found: 'System.Variants'
> > 
> > My search path is:
> > 
> > $(BDS)\lib\win32\debug;
> > $(Delphi)\lib\win32\debug;
> > \4WinNu;
> > \Prog2\Filer51_XE7;
> > \Prog2\Filer51_XE7/Units;
> > C:\Program Files (x86)\Embarcadero\Studio\15.0\source\vcl;
> > C:\Program Files (x86)\Embarcadero\Studio\15.0\source\data;
> > C:\Program Files (x86)\Embarcadero\Studio\15.0\source\rtl\common;
> > C:\Program Files (x86)\Embarcadero\Studio\15.0\source\rtl\sys;
> > C:\Program Files (x86)\Embarcadero\Studio\15.0\source\rtl\win;
> > C:\Program Files (x86)\Embarcadero\Studio\15.0\source\Indy10\Core;
> > C:\Program Files (x86)\Embarcadero\Studio\15.0\source\Indy10\Protocols;
> > C:\Program Files (x86)\Embarcadero\Studio\15.0\source\Indy10\System;
> > c:\prog2\scalabium_xe7\export\sources;
> > c:\prog2\scalabium_xe7\import\sources
> > 
> > System.Variants.pas (Nov 6) is in rtl\sys. What am I doing wrong?
> > 
> > Thanks
> > Tom Obenschain
> 
> Do not add source directories to your search path or library path.  All the 
> DCU's are there in your lib directories.  If you are modifying VCL source, copy 
> the source to its own directory and add that source file directly to the project.
> 
> -- 
> Jeff Overcash (TeamB)
>        (Please do not email me directly unless  asked. Thank You)
> And so I patrol in the valley of the shadow of the tricolor
> I must fear evil. For I am but mortal and mortals can only die.
> Asking questions, pleading answers from the nameless
> faceless watchers that stalk the carpeted  corridors of Whitehall.
>               (Fish)

<>

I modified Classes.pas which requires a recompile of many units.

I tried moving them to my own directory but got another "file not found".

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 24-Dec-2014, at 11:29 AM EST
From: Tom Obenschain
 
Re: file not found on compile  
News Group: embarcadero.public.delphi.install
Tom Obenschain wrote:
> Hello
> 
> I am upgrading from Delphi 2009 to XE7. I am getting this compiler message:
> 
> [dcc32 Fatal Error] Winapi.ActiveX.pas(7803): F1026 File not found: 'System.Variants'
> 
> My search path is:
> 
> $(BDS)\lib\win32\debug;
> $(Delphi)\lib\win32\debug;
> \4WinNu;
> \Prog2\Filer51_XE7;
> \Prog2\Filer51_XE7/Units;
> C:\Program Files (x86)\Embarcadero\Studio\15.0\source\vcl;
> C:\Program Files (x86)\Embarcadero\Studio\15.0\source\data;
> C:\Program Files (x86)\Embarcadero\Studio\15.0\source\rtl\common;
> C:\Program Files (x86)\Embarcadero\Studio\15.0\source\rtl\sys;
> C:\Program Files (x86)\Embarcadero\Studio\15.0\source\rtl\win;
> C:\Program Files (x86)\Embarcadero\Studio\15.0\source\Indy10\Core;
> C:\Program Files (x86)\Embarcadero\Studio\15.0\source\Indy10\Protocols;
> C:\Program Files (x86)\Embarcadero\Studio\15.0\source\Indy10\System;
> c:\prog2\scalabium_xe7\export\sources;
> c:\prog2\scalabium_xe7\import\sources
> 
> System.Variants.pas (Nov 6) is in rtl\sys. What am I doing wrong?
> 
> Thanks
> Tom Obenschain

Do not add source directories to your search path or library path.  All the 
DCU's are there in your lib directories.  If you are modifying VCL source, copy 
the source to its own directory and add that source file directly to the project.

-- 
Jeff Overcash (TeamB)
       (Please do not email me directly unless  asked. Thank You)
And so I patrol in the valley of the shadow of the tricolor
I must fear evil. For I am but mortal and mortals can only die.
Asking questions, pleading answers from the nameless
faceless watchers that stalk the carpeted  corridors of Whitehall.
              (Fish)

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 24-Dec-2014, at 9:10 AM EST
From: Jeff Overcash (TeamB)