| 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 |
| Date: | Thu, 28 Oct 1999 21:03:08 -0400 |
| Message-Id: | <199910290103.VAA28213@envy.delorie.com> |
| From: | DJ Delorie <dj AT delorie DOT com> |
| To: | steve AT khoral DOT com |
| CC: | cygwin AT sourceware DOT cygnus DOT com |
| In-reply-to: | <199910290048.SAA12002@benson> (message from Steve Jorgensen on |
| Thu, 28 Oct 1999 18:48:53 -0600 (MDT)) | |
| Subject: | Re: DLL creation problem |
| References: | <199910290048 DOT SAA12002 AT benson> |
> So how do I make the above assignment (or any global variable > assignemnt) work as expected? What we do is, in the header where you prototype the variable (i.e. the "extern int foo;" line), add a directive like this: extern int foo __declspec(dllimport); Note that you should *only* do this for the application; don't do it for the dll itself. -- 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 |