How do I link a .DLL into my C program on Win32?
Alexandre Oliva
aoliva@redhat.com
Fri Jun 29 20:20:00 GMT 2001
On Jun 28, 2001, "Chris Marshall" <ninethirtysix@hotmail.com> wrote:
> $ gcc -I. -l./psmsg.dll hello.c
> /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/../../../../i686-pc-cygwin/bin/ld:
> cannot find -l./psmsg.dll
> collect2: ld returned 1 exit status
Try -lpsmsg. If this fails, I suppose you may get better help at a
Cygwin-specific mailing list, since DLLs are a MS-Windows thing.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me
More information about the Gcc-help
mailing list