This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: Problem with linking mex files for matlab5
- To: Robert Rozman <Robert dot Rozman at fri dot uni-lj dot si>
- Subject: Re: Problem with linking mex files for matlab5
- From: Mumit Khan <khan at xraylith dot wisc dot edu>
- Date: Thu, 9 Jul 1998 09:52:41 -0500 (CDT)
- Cc: gnu-win32 at cygnus dot com
- Reply-To: Mumit Khan <khan at xraylith dot wisc dot edu>
On Wed, 8 Jul 1998, Robert Rozman wrote:
> Hello !
>
> Sorry, for taking your precious time. But I have a problem with compiling mex file. I have Matlab5 under NT and I'm trying to compile mex under Cygwin32. In the final stage I get
> Linking DLL ...
> /GNU_cdk/B19/H-i386-cygwin32/i386-cygwin32/lib/libcygwin.a(libccrt0.o)(.text+0x92):libccrt0.cc: undefined reference to `GetModuleHandleA@4'
> /GNU_cdk/B19/H-i386-cygwin32/i386-cygwin32/lib/libcygwin.a(libccrt0.o)(.text+0x92):libccrt0.cc: undefined reference to `GetModuleHandleA@4'
> Cleaning up ...
Without looking at your exact command lines and such, I'm assuming that
you're using "ld" instead of gcc to create the DLL, right? If so, add
-lkernel32 to the list of libraries and you should get past at least this
error.
(and please teach your editor to break long lines after 72-76 characters
or so ...)
Mumit
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".