This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: using a dll created by cygwin in msvc++
- From: Jérôme DESPATIS <jdespatis at yahoo dot fr>
- To: cygwin at cygwin dot com
- Date: Fri, 1 Aug 2003 19:19:37 +0200 (CEST)
- Subject: Re: using a dll created by cygwin in msvc++
re
Thank you, in fact, i want to compile a qt program
under win using a dll i've created with cygwin
so with cygwin i get a cygfoo-0.dll and a libfoo.a
so with my qt program under win, i do: qmake -f
Makefile foo1.pro
I edit Makefile to add to LIBS: (foo needs ssl, crypto
and z)
"libcygwin.a" "libfoo.a" "libssl.a" "libcrypto.a"
"libz.a"
then nmake -f Makefile
(i don't know if my method is good...)
but i get those errors:
libcrypto.a (b_print.o) : error: unresolved external
symbol ___umoddi3
libcrypto.a (bn_word.o) : error: unresolved external
symbol ___umoddi3
libcrypto.a (b_print.o) : error: unresolved external
symbol ___udivdi3
Someone understands this error ?
umoddi3 and udivdi3 are not in cygwin maybe ?
thanks
enzo
--- Larry Hall <cygwin-lh@cygwin.com> a écrit : >
Jérôme DESPATIS wrote:
>
> > Re
> >
> > So you say Larry that i need an import library
> > (foo.lib) to link against in msvc++.
> > I think so also.
> >
> > My problem is now to create this .lib.
> > Indeed, in the bottom of the link
> > http://cygwin.com/cygwin-ug-net/dll.html, it's
> > explained to create a .def file and .a file, but
> not a
> > .lib file that i need in msvc++
>
>
> The .a you made with the above is an import file.
> Try it. It's
> easier than creating the .lib. But if you have to,
> check out lib.exe
> that comes with VC++. You can create an import
> library with this too.
>
>
> > In fact i don't need a Cygwin-compatible import
> > library but a MSVC++ -compatible import library,
> > because i want to compile my prog with msvc++
> >
> > (if you ask me why, the simple program is in fact
> a qt
> > program, and trolltech proposes only compilation
> with
> > borland C++ and msvc++ which both use .lib import
> > library)
> >
> > maybe there's some docs in the mailing liste
> archive,
> > but i have great great difficulties with the
> search
> > engine http://cygwin.com/ml/cygwin/
>
>
> You're better off with google and just pointing at
> 'cygwin.com'
> for better or worse.
>
>
> --
> Larry Hall
> http://www.rfk.com
> RFK Partners, Inc. (508)
> 893-9779 - RFK Office
> 838 Washington Street (508)
> 893-9889 - FAX
> Holliston, MA 01746
>
>
>
#################################################################
>
#################################################################
>
#################################################################
> #####
> #####
> #####
>
#################################################################
>
#################################################################
>
#################################################################
>
> --
> 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/
>
___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com
--
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/