This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: How do I link a .DLL into my C program on Win32?
- To: "Chris Marshall" <ninethirtysix at hotmail dot com>
- Subject: Re: How do I link a .DLL into my C program on Win32?
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 30 Jun 2001 00:20:20 -0300
- Cc: gcc-help at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <F35Y3WhkDp8ES092DaC00007544@hotmail.com>
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