PDA

View Full Version : Static scan and compiler variables



NewsArchive
05-13-2011, 02:24 AM
Hello,

I usually define compiler variable for where to find the Clarion Bin folder
and for the location of my exe's and dll's. This worked great when C8 came
out. I only had to make my changes in the compiler variable and all my
files (in this case 258 of them) were found in their new location.

The problem is if you do a static scan to add additional objects to the
setup. SB does not know that I already have the files and would add
duplicates for everything. Once with the full path and once with the
compile variable. Is there something that can be done about this? Maybe
have an option to only add files with different names, not comparing the
path.

Regards,
Abe

NewsArchive
05-13-2011, 02:28 AM
Abe,

Or perhaps it is caused by this upper/lowercase filename problem?

http://www.lindersoft.com/forums/showthread.php?t=5325

Friedrich

NewsArchive
05-13-2011, 02:28 AM
Friedrich,

No. I didn't change the case of the file names, just copied them to a new
folder. Are you saying that SB should be able to tell that C:\Program Files
(x86)\SoftVelocity\Clarion8\bin is the same as [CLARIONBINFOLDER]?

Abe

NewsArchive
05-13-2011, 02:29 AM
Hi Abe,

> No. I didn't change the case of the file names, just copied them to a new
> folder. Are you saying that SB should be able to tell that C:\Program
> Files (x86)\SoftVelocity\Clarion8\bin is the same as [CLARIONBINFOLDER]?

No, I just wanted to make sure that it is not caused by the upper/lowercase
filename problem.

A compiler variable (e.g. [CLARIONBINFOLDER]) is "resolved" at compile time.
If fact, it is not set if you do a static scan and so the static scan wizard
can't "see" its real value.

In other words, it's not possible to tell the static (or dynamic) scan
wizard that "C:\Program Files (x86)\SoftVelocity\Clarion8\bin" is the same
as "[CLARIONBINFOLDER]" :-(

Friedrich

NewsArchive
05-13-2011, 02:29 AM
Friedrich,

Would it be possible to have and option to only add files if the name
(without a path) does not exist?

Abe

NewsArchive
05-13-2011, 02:30 AM
Abe,

> Would it be possible to have and option to only add files if the name
> (without a path) does not exist?

To be honest, I don't know if this is possible (from the technical
point-of-view). We'll review the source code.

Friedrich