delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
Message-ID: | <013001c03eb1$8b083bc0$e2da898b@euler> |
From: | "John Ehrlinger" <jehrling AT bio DOT ri DOT ccf DOT org> |
To: | <cygwin AT sources DOT redhat DOT com> |
Subject: | Porting my console app... |
Date: | Wed, 25 Oct 2000 14:29:25 -0400 |
MIME-Version: | 1.0 |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-Mailer: | Microsoft Outlook Express 5.50.4133.2400 |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.50.4133.2400 |
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. Thanks for the help. John Ehrlinger Systems Analyst The Cleveland Clinic Foundation -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |