DLL calling a DLL: undefined reference when linking.

Larry Hall (RFK Partners, Inc.) lhall@rfk.com
Sun Feb 23 02:37:00 GMT 2003


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@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@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/



More information about the Cygwin mailing list