This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: DLL creation problem
- To: steve at khoral dot com
- Subject: Re: DLL creation problem
- From: DJ Delorie <dj at delorie dot com>
- Date: Thu, 28 Oct 1999 21:03:08 -0400
- CC: cygwin at sourceware dot cygnus dot com
- References: <199910290048.SAA12002@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@sourceware.cygnus.com