Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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.)" 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 CC: cygwin AT cygwin DOT com Subject: Re: DLL calling a DLL: undefined reference when linking. References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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/