This is the mail archive of the
cygwin-xfree
mailing list for the Cygwin XFree86 project.
Re: Can you make a DLL from a library that requires caller-defined functions?
- From: "Yaakov (Cygwin Ports)" <yselkowitz at users dot sourceforge dot net>
- To: cygwin-xfree at cygwin dot com
- Date: Thu, 07 Aug 2008 16:52:33 -0500
- Subject: Re: Can you make a DLL from a library that requires caller-defined functions?
- References: <786314.174.qm@web63007.mail.re1.yahoo.com>
- Reply-to: cygwin-xfree at cygwin dot com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Once again, http://cygwin.com/acronyms/#PCYMTWLL !
Michael Rogers wrote:
| The problem now that the linker doesn't like the undefined references
| for a static library any better then it does for a DLL. I can get
| a static library file if I just run the defualt makefiles which use "ar"
| followed by "randlib" to make a table, but that doesn't produce viable
| executibles when I link it to the test files including the X11
| libraries, carefull observing the linking order as Yaakov suggested.
What's not "viable" about them? Maybe if you tell us what you're trying
to build (if it's publicly available), or include a build log as an
attachment (or link to a pastebin), then someone could be more helpful.
| On the other hand, if I try to create the static library using the linker
| instead (via gcc) as in
| gcc -o staticfoo.a foo_1.o ... foo_n.o -lXpm -lX11
That's not how to make a static library on any platform. You need to
use ar and ranlib as in the makefile.
Yaakov
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEAREIAAYFAkibbqEACgkQpiWmPGlmQSPaywCePn53Y7aWCt+7nby8iqIoR4eN
NCgAnAtN3geZUHuXu46oFKCXv1USO0Wa
=FMem
-----END PGP SIGNATURE-----
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ: http://x.cygwin.com/docs/faq/