delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com> |
List-Archive: | <http://sourceware.cygnus.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sourceware DOT cygnus DOT com> |
List-Help: | <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs> |
Sender: | cygwin-owner AT sourceware DOT cygnus DOT com |
Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com |
From: | Steve Jorgensen <steve AT khoral DOT com> |
Message-Id: | <199910290048.SAA12002@benson> |
Subject: | Re: DLL creation problem |
To: | dj AT delorie DOT com (DJ Delorie) |
Date: | Thu, 28 Oct 1999 18:48:53 -0600 (MDT) |
Cc: | steve AT khoral DOT com, cygwin AT sourceware DOT cygnus DOT com |
In-Reply-To: | <199910282355.TAA27706@envy.delorie.com> from "DJ Delorie" at Oct 28, 99 07:55:55 pm |
X-Mailer: | ELM [version 2.4 PL25] |
DJ Delorie wrote >> > char **envp = environ; >> >> When you have a variable in a DLL, the dll exports the *address* of >> the variable, not the variable itself. Not a problem with functions; >> they're addresses anyway. But, with a data item, it's a little funny. >> Cygwin handles this by telling gcc that the data item is imported from >> a dll, and gcc automagically adds the pointer dereferencing code. >> Thus, a simple assignment might turn into a dereference when compiled. So how do I make the above assignment (or any global variable assignemnt) work as expected? Steve -- ----------------------------------------------------------- Steven Jorgensen steve AT khoral DOT com steve AT haunt DOT com ------------------------------+---------------------------- Khoral Research Inc. | PHONE: (505) 837-6500 6200 Uptown Blvd, Suite 200 | FAX: (505) 881-3842 Albuquerque, NM 87110 | URL: http://www.khoral.com/ ----------------------------------------------------------- -- 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 |