Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Date: Wed, 25 Oct 2000 14:35:58 -0400
From: Christopher Faylor <cgf@redhat.com>
To: cygwin@sources.redhat.com
Subject: Re: Porting my console app...
Message-ID: <20001025143558.B10812@redhat.com>
Reply-To: cygwin@sources.redhat.com
Mail-Followup-To: cygwin@sources.redhat.com
References: <013001c03eb1$8b083bc0$e2da898b@euler>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.6i
In-Reply-To: <013001c03eb1$8b083bc0$e2da898b@euler>; from jehrling@bio.ri.ccf.org on Wed, Oct 25, 2000 at 02:29:25PM -0400

On Wed, Oct 25, 2000 at 02:29:25PM -0400, John Ehrlinger wrote:
>I am porting a program from a Unix platform to windows using the cygwin and
>mingw. I've managed to get the code to compile across both platforms and am
>currently testing and debugging on the windows platform. The program is a
>console app that I want to run in native windows (-mno-cygwin) since I'll be
>distributing it to outside users.
>
>My program uses getenv to locate a temporary directory for file storage. I'm
>defining the directory environment variable in Windows but my program does
>not resolve the variable. I figured in cygwin I can import the windows
>environment through the .bash files. Is there another method I should use to
>get the windows environment variables when I'm running my app stand alone? I
>could conditionally compile around the getenv to a windows method, but I'd
>need a pointer to the correct api.
>
>Sorry if the question is repetitive or simplistic. I'm just a Unix
>programmer porting to a windows world.

Then don't use -mno-cygwin.  It's not a cygwin app at that point.

If you need help with your -mno-cygwin program then you should probably
check out www.mingw.org .  They have pointers to mailing lists that are
populated by people who might be used to handling this type of question.

cgf

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

