This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: help need


On Wed, 22 May 2002 9:21 pm, Rajini wrote:
> Hello,
>
> I am using cygwin on my Windows NT system and facing a problem. I have an
> application which opens the terminal as file and writes and read to the
> terminal. The source code is in Fortran which opens the file with name
> specified as value returned by utility 'tty' i.e is terminal name. For this
> very reason I download the cygwin for internet. The problem, I am now
> facing is that if I compile and build the executable with the 'g77'
> compiler supplied with cygwin, the application works i.e. the application
> opens the terminal as file and reads and writes to the terminal. But if I
> compile and build the application using 'Compaq Visual Fortran Optimizing
> Compiler Version 6.1', the application does not write and read to terminal,
> instead it writes and tries to read from a file '/dev/conin'. The is
> beacuse 'tty' utility of cygwin returns this value and therefore
> application opens a file named as 'conin' under the 'dev' folder of current
> working drive. This is not the case if the application is built using the
> 'g77' compiler available with cygwin.
>
> Kindly, let as know how can we work out a solution for this as we have to
> build the application using the
> 'Compaq Visual Fortran Optimizing Compiler Version 6.1' which is available
> with Visual Studio from Microsoft.
>

Please read http://www.cygwin.com/.  In particular,
* Cygwin is a UNIX environment, developed by Red Hat, for Windows. It 
consists of two parts: A DLL (cygwin1.dll) which acts as a UNIX emulation 
layer providing substantial UNIX API functionality.
* A collection of tools, ported from UNIX, which provide UNIX/Linux look and 
feel.

It sounds to me that the program was written for Unix, and *needs* the 
cygwin1.dll to work unmodified on Windows.

If you want it to work with MS Visual Studio, you will need to
a) modify the code
b) SEEK HELP SOMEWHERE ELSE, since this list is for discussion out the port 
of XFree86 to MS Windows using Cygwin.

Rasjid.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]