www.digitalmars.com         C & C++   DMDScript  

c++.wxwindows - make reports invalid file with tilde

reply chris elliott <biol75 york.ac.uk> writes:
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
Dec 23 2003
parent reply "_" <mjoyl lineone.netX> writes:
"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

Dec 25 2003
parent reply Cesar Rabak <csrabak ig.com.br> writes:
_ 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/
Dec 26 2003
parent reply chris elliott <biol75 york.ac.uk> writes:
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

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
Dec 31 2003
parent Cesar Rabak <csrabak ig.com.br> writes:
chris elliott escreveu:
 Cesar Rabak wrote:



 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

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/
Jan 02 2004