Can you make a DLL from a library that requires caller-defined functions?
Yaakov (Cygwin Ports)
Thu Aug 7 21:53:00 GMT 2008
-----BEGIN PGP SIGNED MESSAGE-----
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.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
More information about the Cygwin-xfree