Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <20030801171937.50391.qmail@web11702.mail.yahoo.com> Date: Fri, 1 Aug 2003 19:19:37 +0200 (CEST) From: =?iso-8859-1?q?J=E9r=F4me=20DESPATIS?= Subject: Re: using a dll created by cygwin in msvc++ To: cygwin AT cygwin DOT com In-Reply-To: <3F298DF3.4030504@cygwin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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 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/