| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| Message-ID: | <3E58240F.7090704@rfk.com> |
| Date: | Sat, 22 Feb 2003 20:29:51 -0500 |
| From: | "Larry Hall (RFK Partners, Inc.)" <lhall AT rfk DOT com> |
| Reply-To: | lhall AT rfk DOT com |
| User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3a) Gecko/20021212 |
| X-Accept-Language: | en-us, en |
| MIME-Version: | 1.0 |
| To: | Wil Hunt <wilh AT gladstone DOT uoregon DOT edu> |
| CC: | cygwin AT cygwin DOT com |
| Subject: | Re: DLL calling a DLL: undefined reference when linking. |
| References: | <b397t8$k0m$1 AT main DOT gmane DOT org> |
| In-Reply-To: | <b397t8$k0m$1@main.gmane.org> |
Wil Hunt wrote: > Hello again, > > I think I'm making marvelous progress. Unfortunately, I'm getting an > error that doesn't make sense: > > $g++ -shared -mno-cygwin -o dllhello.dll dllhello.o > other.dll -Wl,--out-implib,libdllhello.a -Wl,--enable-stdcall-fixup > Creating library file: libdllhello.a > dllhello.o(.text+0x164):dllhello.C: undefined reference to `InitAPI AT 4' > > In my source code, the offending call is: > > extern "C" PASCAL void InitAPI( int handle ); Somebody doesn't see your prototype. -- Larry Hall lhall AT rfk DOT 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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |