This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Trying to link an MSVC DLL with a Cygwin Application
- From: john george <jgsave at yahoo dot com>
- To: cygwin at cygwin dot com
- Date: Mon, 3 May 2004 22:06:58 -0700 (PDT)
- Subject: Trying to link an MSVC DLL with a Cygwin Application
Hi ,
I'm trying to link a MSVC++ created DLL with a cygwin
application. Could you please provide me any useful
link realted to this issue.
I'm trying the following commands but it doesn't seem
to work:
Trying to convert the MSVC++ created DLL to a shared
lib using the dlltool
dlltool --def test.def --dllname msvctest.dll
-llibtest.a
(test.def has the exported symbol names)
I keep this libtest.a in the /lib directory so that
there won't be any LD_LIBRARY_PATH related issues.
After this step I try
gcc mytest.c -ltest
This gives me undefined refernce to function name ...
Is there anything that I'm missing?
Regards,
john
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs
http://hotjobs.sweepstakes.yahoo.com/careermakeover
--
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/