public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* windows and cygwin compiled dll ?
@ 2002-05-28  8:16 Stefan Hansen
  2002-05-28  9:33 ` Larry Hall (RFK Partners, Inc)
  0 siblings, 1 reply; 13+ messages in thread
From: Stefan Hansen @ 2002-05-28  8:16 UTC (permalink / raw)
  To: cygwin

Hi there,

I want to add a, dll which I compiled under cygwin, to my MSVC++ project.
If I am correct I need a lib file of this dll. How can I create this lib
file ?
And can I use the __declspec(dllexport) and __declspec(dllimport) command ?


If I am on the wrong way at all could you please give to solve my problem?

Thanks
Stefan Hansen

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: windows and cygwin compiled dll ?
@ 2002-05-28  8:25 John Vincent
  2002-05-28  9:21 ` Stefan Hansen
  0 siblings, 1 reply; 13+ messages in thread
From: John Vincent @ 2002-05-28  8:25 UTC (permalink / raw)
  To: Stefan.Hansen; +Cc: cygwin

Hi,

The cygwin binutils package contains a utility
called dlltool which I think does what you require.

/John Vincent.


_________________________________________________________________
Join the worldÂ’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: windows and cygwin compiled dll ?
@ 2002-05-29  5:32 Demmer, Thomas
  0 siblings, 0 replies; 13+ messages in thread
From: Demmer, Thomas @ 2002-05-29  5:32 UTC (permalink / raw)
  To: 'cygwin@cygwin.com'

> At 09:52 AM 5/28/2002, Stefan Hansen wrote:
> > > At 07:32 AM 5/28/2002, Stefan Hansen wrote:
> > > >Hi there,
> > > >
> > > >I want to add a, dll which I compiled under cygwin, to my MSVC++
> project.
> > > >If I am correct I need a lib file of this dll. How can I create this
> lib
> > > >file ?
> > > 
> > > 
> > > Why not just use the Cygwin .a import library?
> >
> >Linking whith .a (which i copy to .lib) is no problem. But during the
> >execution i got an Access Violation.
> 
> At which exact do you get the Access violation? I have noticed the
> following
> difference in linking cygwin code into Borland's Delphi:
> Something like
> 
> function malloc(size:Integer):pointer;cdecl;external 'cygwin1.dll' name
> 'malloc';
> 
> bombs with a SIGSEGV at runtime. Also with functions in an own DLL that
> call run-time functions that need proper initialization.
> However, if I declare a pointer to a function, do a LoadLibrary('my.dll')
> and get the
> address of the function with GetProcAddress(handle,'myfunc'), everything
> runs
> fine. My dll initializes the cygwin1.dll properly. I have no idea why this
> works, 
> as the Delphi startup code should be doing exactly the same thing, but I
> guess
> it has something to do with the correct entry points into cygwin1.dll. 
> I can send you a working example off-list, if you are interested.
> 
> Ciao
> Tom
> 
> Thomas Demmer
> Kraft Foods R&D Munich
> Phone: +49 89 62738-6302
> Fax:      +49 89 62738-86302
> 
> Thought of the Day:
> Anyone who uses the phrase "easy as taking candy from a baby" has never
> tried taking candy from a baby.
>                 -- Robin Hood
> 
> 

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

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

end of thread, other threads:[~2002-05-29 21:17 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-28  8:16 windows and cygwin compiled dll ? Stefan Hansen
2002-05-28  9:33 ` Larry Hall (RFK Partners, Inc)
     [not found]   ` <12056.1022593972@www21.gmx.net>
2002-05-28 11:10     ` Larry Hall (RFK Partners, Inc)
2002-05-28 11:51       ` Jason Travis
2002-05-28 12:04         ` Larry Hall (RFK Partners, Inc)
2002-05-28 13:18           ` Larry Hall (RFK Partners, Inc)
2002-05-29  6:10       ` Stefan Hansen
2002-05-29  9:56         ` Larry Hall (RFK Partners, Inc)
2002-05-29 11:10           ` crontab -e: error renaming tabs/tmp.000560 Permission denied Christopher Cobb
     [not found]             ` <20020529174712.GA12913@butch.jgcomp.com>
2002-05-29 19:59               ` Christopher Cobb
2002-05-28  8:25 windows and cygwin compiled dll ? John Vincent
2002-05-28  9:21 ` Stefan Hansen
2002-05-29  5:32 Demmer, Thomas

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).