Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Date: Wed, 18 Apr 2001 16:07:31 -0400
From: Bill Grigg <wgrigg@draper.com>
Subject: stripped dlls
To: cygwin@cygwin.com
Cc: Larry Hall <lhall@rfk.com>
Message-id: <NNEBIAGHCEGPBHKMPLBHAEOECKAA.wgrigg@draper.com>
MIME-version: 1.0
X-MIMEOLE: Produced By Microsoft MimeOLE V5.00.2919.6700
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0)
Content-type: text/plain;	charset="iso-8859-1"
Content-transfer-encoding: 7bit
Importance: Normal
X-Priority: 3 (Normal)
X-MSMail-priority: Normal

In an ongoing attempt to link to a dll that was produced by MS VC++ I have
the following situation:

1. When using the example (in the user manual section entitled - Linking
Against DLLs) on how to produce a library (MYDLL.a) file from the dll
(MYDLL.dll) I get the error message that there are "no symbols" in the dll.
It says the technique shown will only work if the dll is not "stripped".

2. How do I get MS VC++ to generate a dll that is not "stripped"?

3. I did try linking with MYDLL.lib which does not work.

4. I also tried building MYDLL.a from MYDLL.lib using the aforementioned
technique. This appeared to work in that it generated MYDLL.a which was rich
with entry points. Unfortunately, none of them matched.

5. I have tried declaring the functions with the following:

	extern int  __declspec(dllimport) Get_Status_Nav (struct NAV_STAT_MSG* m);

6. The cygwin (or GNU) linker complains with:

	undefined reference to _imp__Get_Status_Nav

7. When I leave off the __declspec(dllimport) qualifier I get:

	undefined reference to Get_Status_Nav

Any suggestions would be appeciated.

BTW: thanks to Larry Hall who has been helping me along on this effort.


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

