Thread overview
make reports invalid file with tilde
Dec 23, 2003
chris elliott
Dec 26, 2003
_
Dec 26, 2003
Cesar Rabak
Dec 31, 2003
chris elliott
Jan 02, 2004
Cesar Rabak
December 23, 2003

Hi- Having put wxWindows into c:\wxWindows, on win2k, the short path name is wxWind~1

The current digitalmars make does not like file names with ~ in their path -

draw020_sample.res : C:\wx\WXWIND~1\samples\sample.rc
Error on line 56: '~' is not a valid filename char


C:\wx\projects\draw020>make -v
Digital Mars Make Version 5.04

Can you sort this  please

thanks
chris
December 26, 2003
"chris elliott" <biol75@york.ac.uk> wrote in message news:bs9erc$up1$1@digitaldaemon.com...
>
>
> Hi- Having put wxWindows into c:\wxWindows, on win2k, the short path name is wxWind~1

in the envirmonment set
do
SET WXWIN=C:\wxWindows
do not
SET WXWIN=C:\wxWind~1

and it should have no problems, it's only spaces and (aparently) "-" and obviously "~" that need to be avoided, otherwise long filenames seem just fine here. including version specific naming eg I have 2 folders c:\wxWindows2.4.1 and c:\wxWindows2.4.2 both get declared fully for WXWIN env variable when apropriate and seem to be ok here :-) short 8.3 name versions fail due to tilde, if you feel you must use 8.3 shortmame I believe there is a registry tweak to stop windows using the tilde in the short 8.3 name version. I do not remember it offhand tho.

HTH :-)

> The current digitalmars make does not like file names with ~ in their path -
>
> draw020_sample.res : C:\wx\WXWIND~1\samples\sample.rc
> Error on line 56: '~' is not a valid filename char
>
>
> C:\wx\projects\draw020>make -v
> Digital Mars Make Version 5.04
>
> Can you sort this  please
>
> thanks
> chris


December 26, 2003
_ escreveu:
> "chris elliott" <biol75@york.ac.uk> wrote in message
> news:bs9erc$up1$1@digitaldaemon.com...
> 
>>
>>Hi- Having put wxWindows into c:\wxWindows, on win2k, the short path
>>name is wxWind~1
> 
> 
> in the envirmonment set
> do
> SET WXWIN=C:\wxWindows
> do not
> SET WXWIN=C:\wxWind~1
> 
> and it should have no problems, it's only spaces and (aparently) "-" and
> obviously "~" that need to be avoided, otherwise long filenames seem just
> fine here. including version specific naming eg I have 2 folders
> c:\wxWindows2.4.1 and c:\wxWindows2.4.2 both get declared fully for WXWIN
> env variable when apropriate and seem to be ok here :-) short 8.3 name
> versions fail due to tilde, if you feel you must use 8.3 shortmame I believe
> there is a registry tweak to stop windows using the tilde in the short 8.3
> name version. I do not remember it offhand tho.
> 

You have to look in the registry for an item called "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem" and if there is no already a key "NameNumericTail" you'll need to create one and assign value of zero to it.

Caveat Emptor: this is tested only in Windows 9X! Don't know if would work in 2000 or XP.

HTH

-- 
Cesar Rabak
GNU/Linux User 52247.
Get counted: http://counter.li.org/

December 31, 2003
Cesar Rabak wrote:

> _ escreveu:
> 
>> "chris elliott" <biol75@york.ac.uk> wrote in message
>> news:bs9erc$up1$1@digitaldaemon.com...
>>
>>>
>>> Hi- Having put wxWindows into c:\wxWindows, on win2k, the short path
>>> name is wxWind~1
>>
>>
>>
>> in the envirmonment set
>> do
>> SET WXWIN=C:\wxWindows
>> do not
>> SET WXWIN=C:\wxWind~1
>>
>> and it should have no problems, it's only spaces and (aparently) "-" and
>> obviously "~" that need to be avoided, otherwise long filenames seem just
>> fine here. including version specific naming eg I have 2 folders
>> c:\wxWindows2.4.1 and c:\wxWindows2.4.2 both get declared fully for WXWIN
>> env variable when apropriate and seem to be ok here :-) short 8.3 name
>> versions fail due to tilde, if you feel you must use 8.3 shortmame I believe
>> there is a registry tweak to stop windows using the tilde in the short 8.3
>> name version. I do not remember it offhand tho.
>>
> 
> You have to look in the registry for an item called "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem" and if there is no already a key "NameNumericTail" you'll need to create one and assign value of zero to it.
> 
> Caveat Emptor: this is tested only in Windows 9X! Don't know if would work in 2000 or XP.
> 
> HTH
> 
Hi (and happy new year)
I can set the path to avoid this on  my development machine, but i wanted to prevent anyone who download wxwindows from having to worry about this. It would be nice if make or dmc could be fixed

chris

January 02, 2004
chris elliott escreveu:
> Cesar Rabak wrote:
[snipped]
>>
> Hi (and happy new year)
Thanks!

> I can set the path to avoid this on  my development machine, but i
> wanted to prevent anyone who download wxwindows from having to worry
>  about this. It would be nice if make or dmc could be fixed
>
I see your point, and of course second it! Technicly speaking, we should
not have a tools that forbids a filename construction that is costumary in the OS!

Regards,

-- 
Cesar Rabak
GNU/Linux User 52247.
Get counted: http://counter.li.org/