public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* DECLARE_CYGWIN_DLL
@ 2000-08-12 15:18 Suhaib M. Siddiqi
  0 siblings, 0 replies; 2+ messages in thread
From: Suhaib M. Siddiqi @ 2000-08-12 15:18 UTC (permalink / raw)
  To: cygwin

Untill 1.1.3 I was using the following

#include <cygwin/cygwin_dll.h>
DECLARE_CYGWIN_DLL(DllMain);
int WINAPI DllMain (HANDLE a, DWORD reason, void *q)
{ return 1; }

for building DLLs when compiling Cygwin-Xfree.

For Cygwin 1.1.4 all getting:

junk.c:2: conflicting types for `_cygwin_dll_entry'
junk.c:2: previous declaration of `_cygwin_dll_entry
make: *** [junk.o] Error 1

Line 2 is:

DECLARE_CYGWIN_DLL(DllMain);


I need to get this going today as I have to turn in some patches.
I hope someone, who knows more about DLLs, can respond and help quicker.

Please CC a copy to me of your reply.

Suhaib

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: DECLARE_CYGWIN_DLL
@ 2000-08-14  5:25 Earnie Boyd
  0 siblings, 0 replies; 2+ messages in thread
From: Earnie Boyd @ 2000-08-14  5:25 UTC (permalink / raw)
  To: Suhaib M. Siddiqi, cygwin

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1116 bytes --]

--- "Suhaib M. Siddiqi" <ssiddiqi@inspirepharm.com> wrote:
> Untill 1.1.3 I was using the following
> 
> #include <cygwin/cygwin_dll.h>
> DECLARE_CYGWIN_DLL(DllMain);
> int WINAPI DllMain (HANDLE a, DWORD reason, void *q)
> { return 1; }
> 
> for building DLLs when compiling Cygwin-Xfree.
> 
> For Cygwin 1.1.4 all getting:
> 
> junk.c:2: conflicting types for `_cygwin_dll_entry'
> junk.c:2: previous declaration of `_cygwin_dll_entry
> make: *** [junk.o] Error 1
> 

Chris posted a patch to the libcygwin.a file soon after the 1.1.4 release. 
Check the archives. ;)

Cheers,

=====
---
   Earnie Boyd: < mailto:earnie_boyd@yahoo.com >
            __Cygwin: POSIX on Windows__
Cygwin Newbies: < http://gw32.freeyellow.com/ >
           __Minimalist GNU for Windows__
  Mingw32 List: < http://www.egroups.com/group/mingw32/ >
    Mingw Home: < http://www.mingw.org/ >

__________________________________________________
Do You Yahoo!?
Yahoo! Mail – Free email you can access from anywhere!
http://mail.yahoo.com/

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-08-14  5:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-08-12 15:18 DECLARE_CYGWIN_DLL Suhaib M. Siddiqi
2000-08-14  5:25 DECLARE_CYGWIN_DLL Earnie Boyd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).