On Fri, 27 Jun 2003 15:25:33 +0300 Nerijus Baliunas <[EMAIL PROTECTED]> wrote:

> On Fri, 27 Jun 2003 09:40:08 +0200 Xavier Nodet <[EMAIL PROTECTED]> wrote:

> > > Full path worked, strange...
> > 
> > Although I do not know how this could happen, you may have a difference
> > in PATH (or other environment variables) between your DOS sessions and
> > Mahogany. You may try to run "cmd.exe /c set" (or something like that)
> > instead of gpg to verify the environment inside M.

> Yes, it's a PATH problem - it is
> Path=D:\Mahogany/scripts;D:\Mahogany/scripts;/cygdrive/c/WINNT/system32:/cygdriv
> e/c/WINNT:/usr/bin
> inside M.

??

Is that a path when running a cygwin-compiled M, or an msvc-compiled M?
In any case, you should not have this mix of cygwin paths and DOS paths...

> I'll try to change separator to ":".

So you actually run a cygwin-compiled M, I guess.

> > Anyway, I would say that Mahogany compiled with cygwin should behave as
> > if compiled on any Unix: the goal of cygwin is to have a POSIX system,
> > after all...

> I don't think so - I look at cygwin as at the development environment for
> porting Unix apps to Windows, but when ported, they should behave like
> native (as much as possible) ones.

No, no... Cygwin is more than a set of development tools: it is complete
POSIX layer on top of Windows, with Unix paths and all the bells and
whistles of a Unix system.

If you want just the set of development tools, you must use mingw, or
compile under cygwin with the -mno-cygwin (or something like that) flag.
This way, you will get a real Windows program that happens to be
compiled with gcc. Is this what you (want to) do? 

Note also that a Cygwin shell knows about the fact the program it
launches is a Cygwin program or a DOS program: in the first case, it
transforms back to DOS notations all the environment variables
(including PATH). A mingw (or -mno-cygwin) program will be recognized as
a Windows program, and will get a DOS-like environment.

-- 
Xavier Nodet
"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety." - Benjamin Franklin, 1759.


Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to