Subject: Re: DLL creation problem
From: Steve Jorgensen <[email-masked]>
To: [email-masked] (DJ Delorie)
Cc: [email-masked], [email-masked]
Date: Thu, 28 Oct 1999 18:48:53 -0600 (MDT)

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      [email-masked]	    [email-masked]
------------------------------+----------------------------
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 [email-masked]