This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Link windows DLL with Cygwin application?? Urgent!!


On Thu, 11 Jan 2007, Eric Lilja wrote:

> RJ wrote:
> > Hi,
> >
> > I am quite new to Cygwin. I am trying to compile my linux application
> > under Cygwin running on Win XP. I need to link my application to a
> > third party DLL. I don't have the source codes for the DLL. How do i
> > do it?
>
> LoadLibrary()/GetProcAddress() doesn't work?

LoadLibrary is needed only for really dynamic linking.  For .so-style
linking, just put the DLL on the command line, like a library (e.g.,

gcc main.o somelib.dll

).
HTH,
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha@cs.nyu.edu | igor@watson.ibm.com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Freedom is just another word for "nothing left to lose"...  -- Janis Joplin

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]