* How to link against .lib files
@ 2001-11-15 1:05 Tianhong Chen
2001-11-15 21:27 ` Larry Hall (RFK Partners, Inc)
2001-11-22 7:27 ` Tianhong Chen
0 siblings, 2 replies; 4+ messages in thread
From: Tianhong Chen @ 2001-11-15 1:05 UTC (permalink / raw)
To: cygwin
Hi, all,
I have a question about how to link against .lib files
using cygwin tools. I read the relevant section in
the FAQ and also searched the mailing list archive,
but didn't get the answer.
In the FAQ, it mentioned the linker: LINK.EXE, what
if
I have only LD from GNU binutiles package?
Could the instructions be more elaborated. The
following is what I couldn't understand:
1) Build a C file == Edit a C file?
2) Build a Dummy LibMain: what should be in LibMain
3) What is a .def file?
4) Is it possible to use "LD" instead of "LINKER.EXE"
It'll be really appreciated for any answers or points
of references to this question.
Best Regards,
Tianhong
__________________________________________________
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to link against .lib files
2001-11-15 1:05 How to link against .lib files Tianhong Chen
@ 2001-11-15 21:27 ` Larry Hall (RFK Partners, Inc)
2001-11-26 9:32 ` Larry Hall (RFK Partners, Inc)
2001-11-22 7:27 ` Tianhong Chen
1 sibling, 1 reply; 4+ messages in thread
From: Larry Hall (RFK Partners, Inc) @ 2001-11-15 21:27 UTC (permalink / raw)
To: Tianhong Chen, cygwin
At 10:27 AM 11/22/2001, Tianhong Chen wrote:
>Hi, all,
>
>I have a question about how to link against .lib files
>using cygwin tools. I read the relevant section in
>the FAQ and also searched the mailing list archive,
>but didn't get the answer.
>
>In the FAQ, it mentioned the linker: LINK.EXE, what
>if
>I have only LD from GNU binutiles package?
>
>Could the instructions be more elaborated. The
>following is what I couldn't understand:
>1) Build a C file == Edit a C file?
>2) Build a Dummy LibMain: what should be in LibMain
>3) What is a .def file?
>4) Is it possible to use "LD" instead of "LINKER.EXE"
>
>It'll be really appreciated for any answers or points
>of references to this question.
This FAQ is a bit dated and slanted toward the use of MSVC's LINK
utility. For many MSVC .lib files, you can just list them as objects
when invoking gcc/g++. Usually, you can substitute the DLL rather than
the .lib too (presumably you would do this only if you don't have a
.lib). If the symbols in the lib/DLL are available, you're done. If
not, you need to follow the FAQ and learn about how MSVC creates DLLs
and exposes the internal functions (see msdn.microsoft.com).
Larry Hall lhall@rfk.com
RFK Partners, Inc. http://www.rfk.com
838 Washington Street (508) 893-9779 - RFK Office
Holliston, MA 01746 (508) 893-9889 - FAX
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 4+ messages in thread
* How to link against .lib files
2001-11-15 1:05 How to link against .lib files Tianhong Chen
2001-11-15 21:27 ` Larry Hall (RFK Partners, Inc)
@ 2001-11-22 7:27 ` Tianhong Chen
1 sibling, 0 replies; 4+ messages in thread
From: Tianhong Chen @ 2001-11-22 7:27 UTC (permalink / raw)
To: cygwin
Hi, all,
I have a question about how to link against .lib files
using cygwin tools. I read the relevant section in
the FAQ and also searched the mailing list archive,
but didn't get the answer.
In the FAQ, it mentioned the linker: LINK.EXE, what
if
I have only LD from GNU binutiles package?
Could the instructions be more elaborated. The
following is what I couldn't understand:
1) Build a C file == Edit a C file?
2) Build a Dummy LibMain: what should be in LibMain
3) What is a .def file?
4) Is it possible to use "LD" instead of "LINKER.EXE"
It'll be really appreciated for any answers or points
of references to this question.
Best Regards,
Tianhong
__________________________________________________
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to link against .lib files
2001-11-15 21:27 ` Larry Hall (RFK Partners, Inc)
@ 2001-11-26 9:32 ` Larry Hall (RFK Partners, Inc)
0 siblings, 0 replies; 4+ messages in thread
From: Larry Hall (RFK Partners, Inc) @ 2001-11-26 9:32 UTC (permalink / raw)
To: Tianhong Chen, cygwin
At 10:27 AM 11/22/2001, Tianhong Chen wrote:
>Hi, all,
>
>I have a question about how to link against .lib files
>using cygwin tools. I read the relevant section in
>the FAQ and also searched the mailing list archive,
>but didn't get the answer.
>
>In the FAQ, it mentioned the linker: LINK.EXE, what
>if
>I have only LD from GNU binutiles package?
>
>Could the instructions be more elaborated. The
>following is what I couldn't understand:
>1) Build a C file == Edit a C file?
>2) Build a Dummy LibMain: what should be in LibMain
>3) What is a .def file?
>4) Is it possible to use "LD" instead of "LINKER.EXE"
>
>It'll be really appreciated for any answers or points
>of references to this question.
This FAQ is a bit dated and slanted toward the use of MSVC's LINK
utility. For many MSVC .lib files, you can just list them as objects
when invoking gcc/g++. Usually, you can substitute the DLL rather than
the .lib too (presumably you would do this only if you don't have a
.lib). If the symbols in the lib/DLL are available, you're done. If
not, you need to follow the FAQ and learn about how MSVC creates DLLs
and exposes the internal functions (see msdn.microsoft.com).
Larry Hall lhall@rfk.com
RFK Partners, Inc. http://www.rfk.com
838 Washington Street (508) 893-9779 - RFK Office
Holliston, MA 01746 (508) 893-9889 - FAX
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2001-11-26 17:32 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-15 1:05 How to link against .lib files Tianhong Chen
2001-11-15 21:27 ` Larry Hall (RFK Partners, Inc)
2001-11-26 9:32 ` Larry Hall (RFK Partners, Inc)
2001-11-22 7:27 ` Tianhong Chen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).